From 94fa652b73d95b89c83211b56f5708a61807b1a9 Mon Sep 17 00:00:00 2001 From: Karim Ahmed <karim.ahmed@xfel.eu> Date: Tue, 15 Oct 2019 09:16:25 +0200 Subject: [PATCH] avoid saving no-arg --- webservice/update_config.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/webservice/update_config.py b/webservice/update_config.py index 9157e8d6c..779b1e420 100644 --- a/webservice/update_config.py +++ b/webservice/update_config.py @@ -71,6 +71,8 @@ for key, value in args.items(): if key in available_options[detector] and value is not None: if 'no-' in key and isinstance(value, bool): new_conf[task][instrument][detector][key.replace('no-','')] = False + # avoid saving the "no-"key into the updated config + continue new_conf[task][instrument][detector][key] = value pyaml = yaml.dump(new_conf, default_flow_style=False) -- GitLab