mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
added deepcopy of default if merge=True
This commit is contained in:
parent
da676cebd6
commit
30ae0a1958
1 changed files with 1 additions and 0 deletions
|
@ -91,6 +91,7 @@ def get(key,
|
|||
raise SaltInvocationError(
|
||||
'default must be a dictionary when merge=True'
|
||||
)
|
||||
default = copy.deepcopy(default)
|
||||
ret = salt.utils.traverse_dict_and_list(pillar_dict, key, {}, delimiter)
|
||||
if isinstance(ret, collections.Mapping) and \
|
||||
isinstance(default, collections.Mapping):
|
||||
|
|
Loading…
Add table
Reference in a new issue