mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-04-14 12:51:04 +00:00
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.
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user