From 0579b8b4e66a8d704df6488c23202a3b9bc4446c Mon Sep 17 00:00:00 2001 From: Michael DeHaan Date: Thu, 16 Aug 2012 21:44:59 -0400 Subject: [PATCH] The command module was not reporting on errors like the other modules when the module failed to parse or return other valid output. This is a slight improvement. --- lib/ansible/callbacks.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ansible/callbacks.py b/lib/ansible/callbacks.py index 09d42eab4b..cfbf8d2c06 100644 --- a/lib/ansible/callbacks.py +++ b/lib/ansible/callbacks.py @@ -140,7 +140,7 @@ def host_report_msg(hostname, module_name, result, oneline): failed = utils.is_failed(result) msg = '' - if module_name in [ 'command', 'shell', 'raw' ] and 'ansible_job_id' not in result: + if module_name in [ 'command', 'shell', 'raw' ] and 'ansible_job_id' not in result and result.get('parsed',True) != False: if not failed: msg = command_generic_msg(hostname, result, oneline, 'success') else: