Reverting this change due to it breaking other uses.

This commit is contained in:
Gareth J. Greenaway 2017-08-25 12:52:26 -07:00
parent b9f4f87aa5
commit ef7e93eb3f

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, posix=False)
parts = salt.utils.shlex_split(arg)
if len(parts) not in nargs:
err = '{0} takes {1} args: {2}'.format(method, nargs, parts)