Commit a1b875ac authored by Matias Guijarro's avatar Matias Guijarro

settings: parameters: make only one call to Redis to get keys

parent 35f66c14
......@@ -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
......
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