mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-08 14:22:46 +00:00
remove warning/deprecation keys after usage
This commit is contained in:
@@ -103,9 +103,11 @@ class CallbackBase:
|
|||||||
if 'warnings' in res and res['warnings']:
|
if 'warnings' in res and res['warnings']:
|
||||||
for warning in res['warnings']:
|
for warning in res['warnings']:
|
||||||
self._display.warning(warning)
|
self._display.warning(warning)
|
||||||
|
del res['warnings']
|
||||||
if 'deprecations' in res and res['deprecations']:
|
if 'deprecations' in res and res['deprecations']:
|
||||||
for warning in res['deprecations']:
|
for warning in res['deprecations']:
|
||||||
self._display.deprecated(**warning)
|
self._display.deprecated(**warning)
|
||||||
|
del res['deprecations']
|
||||||
|
|
||||||
def _get_diff(self, difflist):
|
def _get_diff(self, difflist):
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user