Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

debug should have item #36534

Merged
merged 2 commits into from
Feb 23, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 3 additions & 1 deletion lib/ansible/plugins/callback/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ def __init__(self, display=None, options=None):
if options is not None:
self.set_options(options)

self._hide_in_debug = ('changed', 'failed', 'item', 'skipped', 'invocation')
self._hide_in_debug = ('changed', 'failed', 'skipped', 'invocation')

''' helper for callbacks, so they don't all have to include deepcopy '''
_copy_result = deepcopy
Expand Down Expand Up @@ -239,6 +239,8 @@ def _clean_results(self, result, task_name):
if task_name in ['debug']:
for hideme in self._hide_in_debug:
result.pop(hideme, None)
if 'msg' in result:
result.pop('item', None)

def set_play_context(self, play_context):
pass
Expand Down