Merge pull request #11950 from makinacorpus/ssh

fix: salt ssh args parsing
This commit is contained in:
Joseph Hall 2014-04-13 06:28:38 -06:00
commit 5fa140844b

View File

@ -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,