mirror of
https://github.com/valitydev/salt.git
synced 2024-11-07 17:09:03 +00:00
Makes sure "gather_job_timeout" is an integer
This commit is contained in:
parent
b208630d85
commit
68dccae5b4
@ -220,7 +220,7 @@ class LocalClient(object):
|
||||
Return the information about a given job
|
||||
'''
|
||||
log.debug('Checking whether jid {0} is still running'.format(jid))
|
||||
timeout = kwargs.get('gather_job_timeout', self.opts['gather_job_timeout'])
|
||||
timeout = int(kwargs.get('gather_job_timeout', self.opts['gather_job_timeout']))
|
||||
|
||||
pub_data = self.run_job(tgt,
|
||||
'saltutil.find_job',
|
||||
@ -921,7 +921,7 @@ class LocalClient(object):
|
||||
|
||||
if timeout is None:
|
||||
timeout = self.opts['timeout']
|
||||
gather_job_timeout = kwargs.get('gather_job_timeout', self.opts['gather_job_timeout'])
|
||||
gather_job_timeout = int(kwargs.get('gather_job_timeout', self.opts['gather_job_timeout']))
|
||||
start = int(time.time())
|
||||
|
||||
# timeouts per minion, id_ -> timeout time
|
||||
|
Loading…
Reference in New Issue
Block a user