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

remove warning/deprecation keys after usage

This commit is contained in:
Brian Coca 2017-02-08 09:30:34 -05:00
parent 942ed146c3
commit 82337cf52a

View file

@ -103,9 +103,11 @@ class CallbackBase:
if 'warnings' in res and res['warnings']:
for warning in res['warnings']:
self._display.warning(warning)
del res['warnings']
if 'deprecations' in res and res['deprecations']:
for warning in res['deprecations']:
self._display.deprecated(**warning)
del res['deprecations']
def _get_diff(self, difflist):