iscesys/DictUtils: made a copy of the configuration dict before iterating over it

LT1AB
Michael Aïvázis 2020-03-18 11:26:00 -07:00
parent d6e22a762f
commit ea24d2320b
1 changed files with 1 additions and 1 deletions

View File

@ -81,7 +81,7 @@ class DictUtils:
spare = []
# dict1 is the one to update
for k2,v2 in dict2.items():
for k2,v2 in dict(dict2).items():
if DictUtils.keyIsIn(k2,dict1):
if isinstance(v2,dict):#if is a dict keep going down the node
DictUtils.updateDictionary(dict1[k2],v2,replace,spare)