Updating the call to shlex_split to pass the posix=False argument so that quotes are preserved.

This commit is contained in:
Gareth J. Greenaway 2017-08-01 12:40:31 -07:00
parent f2b0c9b4fa
commit 24413084e2

View file

@ -199,7 +199,7 @@ def execute(context=None, lens=None, commands=(), load_path=None):
method = METHOD_MAP[cmd]
nargs = arg_map[method]
parts = salt.utils.shlex_split(arg)
parts = salt.utils.shlex_split(arg, posix=False)
if len(parts) not in nargs:
err = '{0} takes {1} args: {2}'.format(method, nargs, parts)