hide uneeded fields for callbacks (#36259)

* hide uneeded fields for callbacks

fix selective instead of pushing uneeded fields to the methods

* piipii
This commit is contained in:
Brian Coca 2018-02-20 08:41:18 -05:00 committed by GitHub
parent c119d54e4a
commit 6af5693dc2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 14 additions and 10 deletions

View file

@ -10,8 +10,8 @@ from copy import deepcopy
from ansible.parsing.dataloader import DataLoader
from ansible.vars.clean import strip_internal_keys
_IGNORE = tuple()
_PRESERVE = ('attempts', 'changed', 'retries', 'failed', 'unreachable', 'skipped')
_IGNORE = ('failed', 'skipped')
_PRESERVE = ('attempts', 'changed', 'retries')
class TaskResult: