mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 17:33:54 +00:00
Loop over updated keys in non recursive update
Remove dict.update and always use loop because this is failing for NamespacedDictWrapper.
This commit is contained in:
parent
6ea0ce6a38
commit
ddd0c707dd
@ -58,7 +58,8 @@ def update(dest, upd, recursive_update=True, merge_lists=False):
|
||||
return dest
|
||||
else:
|
||||
try:
|
||||
dest.update(upd)
|
||||
for k in upd.keys():
|
||||
dest[k] = upd[k]
|
||||
except AttributeError:
|
||||
# this mapping is not a dict
|
||||
for k in upd:
|
||||
|
Loading…
Reference in New Issue
Block a user