check_hobos: save config.pck to disk more often (#8078)
This commit is contained in:
parent
5cb85dab8d
commit
1f9bbc85f5
|
@ -190,6 +190,10 @@ class CmdCheckHobos(Command):
|
|||
if idps:
|
||||
pub.cfg['saml_identities']['identity-creation'] = 'self'
|
||||
|
||||
# write down configuration to disk as it will get reloaded
|
||||
# automatically and we don't want to lose our changes.
|
||||
pub.write_cfg()
|
||||
|
||||
for idp in idps:
|
||||
if not idp['base_url'].endswith('/'):
|
||||
idp['base_url'] = idp['base_url'] + '/'
|
||||
|
@ -221,8 +225,7 @@ class CmdCheckHobos(Command):
|
|||
pub.cfg['idp'][key_provider_id]['nameidformat'] = 'unspecified'
|
||||
pub.cfg['saml_identities']['registration-url'] = str(
|
||||
'%saccounts/register/' % idp['base_url'])
|
||||
|
||||
pub.write_cfg()
|
||||
pub.write_cfg()
|
||||
|
||||
def get_instance_path(self, service):
|
||||
parsed_url = urllib2.urlparse.urlsplit(service.get('base_url'))
|
||||
|
|
Loading…
Reference in New Issue