mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Repaired object type bug in timeout
This commit is contained in:
parent
693195a87e
commit
77f7000f0a
1 changed files with 4 additions and 3 deletions
|
@ -28,6 +28,7 @@ class SaltCMD(object):
|
|||
parser.add_option('-t',
|
||||
'--timeout',
|
||||
default=5,
|
||||
type=int,
|
||||
dest='timeout',
|
||||
help='Set the return timeout for batch jobs')
|
||||
|
||||
|
@ -36,9 +37,9 @@ class SaltCMD(object):
|
|||
opts = {}
|
||||
|
||||
opts['timeout'] = options.timeout
|
||||
opts['tgt'] = args[1]
|
||||
opts['fun'] = args[2]
|
||||
opts['arg'] = args[3:]
|
||||
opts['tgt'] = args[0]
|
||||
opts['fun'] = args[1]
|
||||
opts['arg'] = args[2:]
|
||||
|
||||
return opts
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue