[fix][run] wont pop keys if we dont operate on a copy

This commit is contained in:
Maxime Alves LIRMM@home 2022-01-21 14:32:55 +01:00
parent f02a97fbf8
commit be312d4b7a

View File

@ -56,8 +56,9 @@ def run(host, port, reload, secret, production, loglevel, prefix, check, dryrun,
if 'domain' not in CONFIG:
CONFIG['domain'] = {}
for key in CONFIG.get('domain'):
# Disable all domains
# Disable all domains
keys = list(CONFIG.get('domain').keys())
for key in keys:
CONFIG['domain'].pop(key)
# And activate the desired one, mounted without prefix