Commit 07a4a8bf authored by Piergiorgio Pancino's avatar Piergiorgio Pancino

Merge branch 'settings_fixes' into 'master'

Little improvements/fixes in config/ (related to Parameters)

See merge request !1342
parents 51e19797 170a4521
Pipeline #11526 passed with stages
in 36 minutes and 1 second
......@@ -1216,10 +1216,10 @@ class ParametersWardrobe(metaclass=ParametersType):
self._proxy_default = BaseHashSetting(self._hash("default"), **keys)
# Managing default written to proxy_default
for k, v in default_values.items():
if k not in self._proxy_default.keys():
# add only if default values does not exist
self.add(k, v)
keys = self._proxy_default.keys()
for k in set(default_values.keys()) - set(keys):
# add only if default values does not exist
self.add(k, default_values[k])
if "default" not in self._instances:
# New created Wardrobe, switch to default
......@@ -1502,8 +1502,8 @@ class ParametersWardrobe(metaclass=ParametersType):
Retrieve a single instance of parameters from redis
name_backup = self._proxy._name
name_backup = self._proxy._name
if name in self.instances:
self._proxy._name = self._hash(name)
results = self._proxy.get_all()
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment