From 3394f0240ab75363b5f3ba9102872528e61610b7 Mon Sep 17 00:00:00 2001 From: Blake Harnden <32446120+bharnden@users.noreply.github.com> Date: Wed, 22 Apr 2020 12:07:42 -0700 Subject: [PATCH] update reading session xml options to updating these values instead of clearing out existing settings, avoids issue wiping ovs settings etc --- daemon/core/xml/corexml.py | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/daemon/core/xml/corexml.py b/daemon/core/xml/corexml.py index d3d4b94b..6ad210b8 100644 --- a/daemon/core/xml/corexml.py +++ b/daemon/core/xml/corexml.py @@ -638,14 +638,14 @@ class CoreXmlReader: session_options = self.scenario.find("session_options") if session_options is None: return - - configs = {} - for config in session_options.iterchildren(): - name = config.get("name") - value = config.get("value") - configs[name] = value - logging.info("reading session options: %s", configs) - self.session.options.set_configs(configs) + xml_config = {} + for configuration in session_options.iterchildren(): + name = configuration.get("name") + value = configuration.get("value") + xml_config[name] = value + logging.info("reading session options: %s", xml_config) + config = self.session.options.get_configs() + config.update(xml_config) def read_session_hooks(self) -> None: session_hooks = self.scenario.find("session_hooks")