mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 01:18:58 +00:00
Further optimize dictupdate.update()
This commit is contained in:
parent
c73f5ba37c
commit
ff6b2a781f
@ -28,6 +28,8 @@ def update(dest, upd, recursive_update=True):
|
||||
'''
|
||||
if dest is None:
|
||||
return upd
|
||||
if not (set(dest.keys()) & set(upd.keys())):
|
||||
recursive_update = False
|
||||
if recursive_update:
|
||||
for key, val in six.iteritems(upd):
|
||||
try:
|
||||
|
Loading…
Reference in New Issue
Block a user