salt.utils.docker.translate_input: operate on deepcopy of kwargs

This keeps the translation from rewriting the low chunks and breaking
the watch requisite.
This commit is contained in:
Erik Johnson 2018-02-28 23:07:58 -06:00
parent da60399b8f
commit a14d4daf8c
No known key found for this signature in database
GPG key ID: 5E5583C437808F3F

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 = []