Commit 09a0b9be by Michael DeHaan

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.
parent a5df306a
...@@ -640,8 +640,9 @@ class Runner(object): ...@@ -640,8 +640,9 @@ class Runner(object):
else: else:
self.callbacks.on_ok(host, data) self.callbacks.on_ok(host, data)
if self.debug and err: if err:
self.callbacks.on_error(host, err) if self.debug or data.get('parsed', True) == False:
self.callbacks.on_error(host, err)
return result return result
......
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