added deepcopy of default if merge=True

This commit is contained in:
marco.messerschmidt 2017-01-05 12:16:57 +01:00 committed by rallytime
parent da676cebd6
commit 30ae0a1958

View file

@ -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):