mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Remove __kwarg__ from salt-ssh keyword args
Currently this keyword arg is actually being removed as a side effect of salt.utils.args.parse_input. If that ever changed then this code would break. Prevent that future breakage. (I considered removing that side effect but wasn't sure what else it would break so I held off for now)
This commit is contained in:
parent
e0bb177823
commit
9b55683f6a
1 changed files with 2 additions and 0 deletions
|
@ -1219,6 +1219,8 @@ def _convert_args(args):
|
|||
for arg in args:
|
||||
if isinstance(arg, dict):
|
||||
for key in list(arg.keys()):
|
||||
if key == '__kwarg__':
|
||||
continue
|
||||
converted.append('{0}={1}'.format(key, arg[key]))
|
||||
else:
|
||||
converted.append(arg)
|
||||
|
|
Loading…
Add table
Reference in a new issue