mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-06 21:32:49 +00:00
If the timeout in _poll_async_result has expired, raise the exception (#35878)
This commit is contained in:
@@ -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'):
|
||||
|
||||
Reference in New Issue
Block a user