mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Updating the call to shlex_split to pass the posix=False argument so that quotes are preserved.
This commit is contained in:
parent
f2b0c9b4fa
commit
24413084e2
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Reference in a new issue