mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-06 21:32:49 +00:00
If the module return is not parsed, always show stderr information even if -D (debug)
is not specified. This will help for users that don't have prerequisites installed (like python-simplejson on old RHEL) and do not know to run -D.
This commit is contained in:
@@ -640,8 +640,9 @@ class Runner(object):
|
||||
else:
|
||||
self.callbacks.on_ok(host, data)
|
||||
|
||||
if self.debug and err:
|
||||
self.callbacks.on_error(host, err)
|
||||
if err:
|
||||
if self.debug or data.get('parsed', True) == False:
|
||||
self.callbacks.on_error(host, err)
|
||||
|
||||
return result
|
||||
|
||||
|
||||
Reference in New Issue
Block a user