Commit 5f1c7c8e by Michael DeHaan

Fix up the output of the raw module when run within /usr/bin/ansible

parent 834a56ff
...@@ -25,6 +25,7 @@ Ansible Changes By Release ...@@ -25,6 +25,7 @@ Ansible Changes By Release
* SELinux facts now sourced from the python selinux library * SELinux facts now sourced from the python selinux library
* removed module debug option -D * removed module debug option -D
* added --verbose, which shows output from successful playbook operations * added --verbose, which shows output from successful playbook operations
* print the output of the raw command inside /usr/bin/ansible as with command/shell
0.4 "Unchained" ------- May 23, 2012 0.4 "Unchained" ------- May 23, 2012
......
...@@ -132,7 +132,7 @@ def host_report_msg(hostname, module_name, result, oneline): ...@@ -132,7 +132,7 @@ def host_report_msg(hostname, module_name, result, oneline):
''' summarize the JSON results for a particular host ''' ''' summarize the JSON results for a particular host '''
buf = '' buf = ''
failed = is_failed(result) failed = is_failed(result)
if module_name in [ 'command', 'shell' ] and 'ansible_job_id' not in result: if module_name in [ 'command', 'shell', 'raw' ] and 'ansible_job_id' not in result:
if not failed: if not failed:
buf = command_success_msg(hostname, result, oneline) buf = command_success_msg(hostname, result, oneline)
else: else:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment