mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-04-25 11:51:26 -07:00
renames dict_combine to dict_merge in network_common (#26073)
This commit is contained in:
parent
15beaed6bc
commit
b12ca95824
2 changed files with 5 additions and 5 deletions
|
@ -227,7 +227,7 @@ def dict_diff(base, comparable):
|
|||
return updates
|
||||
|
||||
|
||||
def dict_combine(base, other):
|
||||
def dict_merge(base, other):
|
||||
""" Return a new dict object that combines base and other
|
||||
|
||||
This will create a new dict object that is a combination of the key/value
|
||||
|
@ -250,7 +250,7 @@ def dict_combine(base, other):
|
|||
if key in other:
|
||||
item = other.get(key)
|
||||
if item is not None:
|
||||
combined[key] = dict_combine(value, other[key])
|
||||
combined[key] = dict_merge(value, other[key])
|
||||
else:
|
||||
combined[key] = item
|
||||
else:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue