@@ -26,7 +26,8 @@ def _create_backend_metadata(backend_modules):
26
26
27
27
for plugin_module in backend_modules :
28
28
if isinstance (plugin_module , SAMLBackend ):
29
- logger .info ("Generating SAML backend '%s' metadata" , plugin_module .name )
29
+ logline = "Generating SAML backend '{}' metadata" .format (plugin_module .name )
30
+ logger .info (logline )
30
31
backend_metadata [plugin_module .name ] = [_create_entity_descriptor (plugin_module .config ["sp_config" ])]
31
32
32
33
return backend_metadata
@@ -60,7 +61,10 @@ def _create_frontend_metadata(frontend_modules, backend_modules):
60
61
for frontend in frontend_modules :
61
62
if isinstance (frontend , SAMLMirrorFrontend ):
62
63
for backend in backend_modules :
63
- logger .info ("Creating metadata for frontend '%s' and backend '%s'" .format (frontend .name , backend .name ))
64
+ logline = "Creating metadata for frontend '{}' and backend '{}'" .format (
65
+ frontend .name , backend .name
66
+ )
67
+ logger .info (logline )
64
68
meta_desc = backend .get_metadata_desc ()
65
69
for desc in meta_desc :
66
70
entity_desc = _create_entity_descriptor (
@@ -72,7 +76,8 @@ def _create_frontend_metadata(frontend_modules, backend_modules):
72
76
co_names = frontend ._co_names_from_config ()
73
77
74
78
for co_name in co_names :
75
- logger .info ("Creating metadata for CO {}" .format (co_name ))
79
+ logline = "Creating metadata for CO {}" .format (co_name )
80
+ logger .info (logline )
76
81
idp_config = copy .deepcopy (frontend .config ["idp_config" ])
77
82
idp_config = frontend ._add_endpoints_to_config (idp_config , co_name , backend .name )
78
83
idp_config = frontend ._add_entity_id (idp_config , co_name )
0 commit comments