Merge pull request #46276 from terminalmage/issue44046

salt.utils.docker.translate_input: operate on deepcopy of kwargs
This commit is contained in:
Nicole Thomas 2018-03-01 10:37:43 -05:00 committed by GitHub
commit 88a3166589
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -8,6 +8,7 @@ input as formatted by states.
# Import Python libs
from __future__ import absolute_import
import copy
import logging
import os
@ -174,7 +175,7 @@ def translate_input(**kwargs):
have their translation skipped. Optionally, skip_translate can be set to
True to skip *all* translation.
'''
kwargs = salt.utils.clean_kwargs(**kwargs)
kwargs = copy.deepcopy(salt.utils.clean_kwargs(**kwargs))
invalid = {}
collisions = []