1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

Show failed result on a retry message

Fixes #10099
This commit is contained in:
James Cammarata 2015-07-02 10:33:22 -04:00
parent f52c498aa1
commit 31239f44cd

View file

@ -265,7 +265,7 @@ class TaskExecutor:
for attempt in range(retries): for attempt in range(retries):
if attempt > 0: if attempt > 0:
# FIXME: this should use the callback/message passing mechanism # FIXME: this should use the callback/message passing mechanism
print("FAILED - RETRYING: %s (%d retries left)" % (self._task, retries-attempt)) print("FAILED - RETRYING: %s (%d retries left). Result was: %s" % (self._task, retries-attempt, result))
result['attempts'] = attempt + 1 result['attempts'] = attempt + 1
debug("running the handler") debug("running the handler")