Add module_stdout/stderr fields to list in 'debug' callback plugin

pull/33562/merge
Andrew Gaffney 7 years ago committed by Toshio Kuratomi
parent 395566746e
commit 6a84772290

@ -38,13 +38,13 @@ class CallbackModule(CallbackModule_default): # pylint: disable=too-few-public-
result['_ansible_verbose_always'] = True
save = {}
for key in ['stdout', 'stdout_lines', 'stderr', 'stderr_lines', 'msg']:
for key in ['stdout', 'stdout_lines', 'stderr', 'stderr_lines', 'msg', 'module_stdout', 'module_stderr']:
if key in result:
save[key] = result.pop(key)
output = CallbackModule_default._dump_results(self, result)
for key in ['stdout', 'stderr', 'msg']:
for key in ['stdout', 'stderr', 'msg', 'module_stdout', 'module_stderr']:
if key in save and save[key]:
output += '\n\n%s:\n\n%s\n' % (key.upper(), save[key])

Loading…
Cancel
Save