From 82337cf52a02c67dcb3daaabcc7fe07629e100f7 Mon Sep 17 00:00:00 2001 From: Brian Coca Date: Wed, 8 Feb 2017 09:30:34 -0500 Subject: [PATCH] remove warning/deprecation keys after usage --- lib/ansible/plugins/callback/__init__.py | 2 ++ 1 file changed, 2 insertions(+) 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):