From be312d4b7a6b3f6d48d27b0f94baca2561fea275 Mon Sep 17 00:00:00 2001 From: "Maxime Alves LIRMM@home" Date: Fri, 21 Jan 2022 14:32:55 +0100 Subject: [PATCH] [fix][run] wont pop keys if we dont operate on a copy --- halfapi/cli/run.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/halfapi/cli/run.py b/halfapi/cli/run.py index 4571c4a..164f871 100644 --- a/halfapi/cli/run.py +++ b/halfapi/cli/run.py @@ -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