mirror of
https://github.com/valitydev/salt.git
synced 2024-11-07 08:58:59 +00:00
Revert "fix augeas module so shlex doesn't strip quotes"
This commit is contained in:
parent
909d519ddb
commit
eb889173b0
@ -199,7 +199,7 @@ def execute(context=None, lens=None, commands=(), load_path=None):
|
|||||||
method = METHOD_MAP[cmd]
|
method = METHOD_MAP[cmd]
|
||||||
nargs = arg_map[method]
|
nargs = arg_map[method]
|
||||||
|
|
||||||
parts = salt.utils.shlex_split(arg, posix=False)
|
parts = salt.utils.shlex_split(arg)
|
||||||
|
|
||||||
if len(parts) not in nargs:
|
if len(parts) not in nargs:
|
||||||
err = '{0} takes {1} args: {2}'.format(method, nargs, parts)
|
err = '{0} takes {1} args: {2}'.format(method, nargs, parts)
|
||||||
|
Loading…
Reference in New Issue
Block a user