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

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>
This commit is contained in:
Abhijeet Kasurde 2018-11-20 10:31:17 +05:30 committed by Brian Coca
parent 9f1b75db0e
commit a6fde8aef9

View file

@ -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: