bug fix ...

pull/17/head
Steve Nyemba 4 weeks ago
parent 1337a99b18
commit 86b57ccfd8

@ -157,12 +157,13 @@ def secure(
f.write(str(uuid.uuid4())) f.write(str(uuid.uuid4()))
f.close() f.close()
# #
manifest = get_manifest(manifest)
_config = cms.engine.config.get(manifest) _config = cms.engine.config.get(manifest)
if 'source' not in _config['system']: if 'source' not in _config['system']:
_config['system']['source'] = {'id':'disk'} _config['system']['source'] = {'id':'disk'}
_config['system']['source']['key'] = keyfile _config['system']['source']['key'] = keyfile
cms.engine.config.write(_config,manifest) cms.engine.config.write(_config,manifest)
_msg = f"""{PASSED} [bold]{_config['system']['layout']['header']['title']}[/bold] : A key was generated and written to {keyfile} _msg = f"""{PASSED} [bold]{_config['layout']['header']['title']}[/bold] : A key was generated and written to {keyfile}
use this key in header to enable reload of the site ...` use this key in header to enable reload of the site ...`
""" """
else: else:

Loading…
Cancel
Save