Start pinging minions after TIMEOUT, instead of immediately

This commit is contained in:
Thomas Jackson 2014-09-23 18:50:50 -07:00
parent 3773b02489
commit 0d0f3e63af

View File

@ -841,8 +841,8 @@ class LocalClient(object):
# iterator for this job's return
ret_iter = self.get_returns_no_block(jid)
# iterator for the info of this job
jinfo_iter = None
jinfo_timeout = None
jinfo_iter = []
jinfo_timeout = time.time() + timeout
while True:
# Process events until timeout is reached or all minions have returned
for raw in ret_iter:
@ -888,7 +888,7 @@ class LocalClient(object):
minion_timeouts[id_] = time.time() + timeout
# if we don't have the job info iterator (or its timed out), lets make it
if jinfo_iter is None or time.time() > jinfo_timeout:
if time.time() > jinfo_timeout:
# need our own event listener, so we don't clobber the class one
event = salt.utils.event.get_event(
'master',