From a6fde8aef9b536e7399ade052da29617198abf01 Mon Sep 17 00:00:00 2001 From: Abhijeet Kasurde Date: Tue, 20 Nov 2018 10:31:17 +0530 Subject: [PATCH] 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 --- lib/ansible/executor/task_executor.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ansible/executor/task_executor.py b/lib/ansible/executor/task_executor.py index 3b7a4b4d4d1..af928fe5aa6 100644 --- a/lib/ansible/executor/task_executor.py +++ b/lib/ansible/executor/task_executor.py @@ -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: