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:
parent
942ed146c3
commit
82337cf52a
1 changed files with 2 additions and 0 deletions
|
@ -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):
|
||||
|
||||
|
|
Loading…
Reference in a new issue