mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 01:18:58 +00:00
Merge pull request #11950 from makinacorpus/ssh
fix: salt ssh args parsing
This commit is contained in:
commit
5fa140844b
@ -477,8 +477,10 @@ class SSH(object):
|
|||||||
args = [arg_str]
|
args = [arg_str]
|
||||||
else:
|
else:
|
||||||
cmd_args = arg_str.split(None, 1)
|
cmd_args = arg_str.split(None, 1)
|
||||||
fun = cmd_args[0]
|
fun = cmd_args.pop()
|
||||||
args = [cmd_args[1]]
|
args = []
|
||||||
|
if cmd_args:
|
||||||
|
args = [cmd_args]
|
||||||
|
|
||||||
job_load = {
|
job_load = {
|
||||||
'jid': jid,
|
'jid': jid,
|
||||||
|
Loading…
Reference in New Issue
Block a user