mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +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
e9e5bbe38b
commit
d949110993
1 changed files with 2 additions and 1 deletions
|
@ -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…
Add table
Reference in a new issue