1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

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

This commit is contained in:
Chen Zhiwei 2018-11-07 01:36:42 +08:00 committed by ansibot
parent 7760b04020
commit 329d3b892b

View file

@ -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))