From 4d75f9b4bc9a70cac7af5b82cdd31d2eae55d194 Mon Sep 17 00:00:00 2001 From: "James S. Martin" Date: Tue, 30 Aug 2016 10:10:01 -0400 Subject: [PATCH] Shows messages for uncaught exceptions from called modules in async_wrapper output. (#4591) --- lib/ansible/modules/utilities/logic/async_wrapper.py | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/ansible/modules/utilities/logic/async_wrapper.py b/lib/ansible/modules/utilities/logic/async_wrapper.py index 3a9b44d4cd0..05452b4e2cc 100644 --- a/lib/ansible/modules/utilities/logic/async_wrapper.py +++ b/lib/ansible/modules/utilities/logic/async_wrapper.py @@ -105,6 +105,7 @@ def _run_module(wrapped_cmd, jid, job_path): "failed" : 1, "cmd" : wrapped_cmd, "data" : outdata, # temporary notice only + "stderr": stderr, "msg" : traceback.format_exc() } result['ansible_job_id'] = jid