Add timeout information into async failure message

Add some extra information to an async failure message to reflect the
actually timeout value of the failure.

Signed-off-by: Paul Belanger <pabelanger@redhat.com>
pull/48939/head
Abhijeet Kasurde 6 years ago committed by Brian Coca
parent 9f1b75db0e
commit a6fde8aef9

@ -806,7 +806,7 @@ class TaskExecutor:
if int(async_result.get('finished', 0)) != 1:
if async_result.get('_ansible_parsed'):
return dict(failed=True, msg="async task did not complete within the requested time")
return dict(failed=True, msg="async task did not complete within the requested time - %ss" % self._task.async_val)
else:
return dict(failed=True, msg="async task produced unparseable results", async_result=async_result)
else:

Loading…
Cancel
Save