diff --git a/lib/ansible/plugins/callback/__init__.py b/lib/ansible/plugins/callback/__init__.py index 76bf50322a..162ff1d0a2 100644 --- a/lib/ansible/plugins/callback/__init__.py +++ b/lib/ansible/plugins/callback/__init__.py @@ -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):