mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Add docstring
This commit is contained in:
parent
8579429314
commit
9ef2c64098
1 changed files with 8 additions and 0 deletions
|
@ -18,6 +18,14 @@ log = logging.getLogger(__name__)
|
|||
|
||||
|
||||
def update(dest, upd, recursive_update=True):
|
||||
'''
|
||||
Recursive version of the default dict.update
|
||||
|
||||
Merges upd recursively into dest
|
||||
|
||||
If recursive_update=False, will use the classic dict.update, or fall back
|
||||
on a manual merge (helpful for non-dict types like FunctionWrapper)
|
||||
'''
|
||||
if recursive_update:
|
||||
for key, val in six.iteritems(upd):
|
||||
try:
|
||||
|
|
Loading…
Add table
Reference in a new issue