if we already have stderr, we don't need stderr_lines (#44675)

pull/48285/head
Chen Zhiwei 6 years ago committed by ansibot
parent 7760b04020
commit 329d3b892b

@ -114,6 +114,10 @@ class CallbackModule(Default):
if 'stdout' in abridged_result and 'stdout_lines' in abridged_result:
abridged_result['stdout_lines'] = '<omitted>'
# if we already have stderr, we don't need stderr_lines
if 'stderr' in abridged_result and 'stderr_lines' in abridged_result:
abridged_result['stderr_lines'] = '<omitted>'
if abridged_result:
dumped += '\n'
dumped += to_text(yaml.dump(abridged_result, allow_unicode=True, width=1000, Dumper=AnsibleDumper, default_flow_style=False))

Loading…
Cancel
Save