fix: salt ssh args parsing

This commit is contained in:
Mathieu Le Marec - Pasquet 2014-04-13 00:14:48 +02:00
parent 6c3e7faa18
commit 70f2ba394e

View File

@ -477,8 +477,10 @@ class SSH(object):
args = [arg_str]
else:
cmd_args = arg_str.split(None, 1)
fun = cmd_args[0]
args = [cmd_args[1]]
fun = cmd_args.pop()
args = []
if cmd_args:
args = [cmd_args]
job_load = {
'jid': jid,