If the timeout in _poll_async_result has expired, raise the exception (#35878)
This commit is contained in:
parent
0ccef03b43
commit
82c1456781
1 changed files with 6 additions and 1 deletions
|
@ -729,7 +729,12 @@ class TaskExecutor:
|
|||
except AttributeError:
|
||||
pass
|
||||
|
||||
time_left -= self._task.poll
|
||||
# Little hack to raise the exception if we've exhausted the timeout period
|
||||
time_left -= self._task.poll
|
||||
if time_left <= 0:
|
||||
raise
|
||||
else:
|
||||
time_left -= self._task.poll
|
||||
|
||||
if int(async_result.get('finished', 0)) != 1:
|
||||
if async_result.get('_ansible_parsed'):
|
||||
|
|
Loading…
Reference in a new issue