From db492e7f5b213c498621825fb71746f4c991b509 Mon Sep 17 00:00:00 2001 From: Major Hayden Date: Mon, 12 Dec 2016 10:46:56 -0600 Subject: [PATCH] Catch only debug tasks w/callback The last patch for the debug collector fixed the jinja templating issue, but it didn't keep the filter that checks the `action` attribute for each task. This patch puts the filter back in. Change-Id: I86835d272f037fee5545a888b8a6f67869f5ef66 --- callback/debug_message_collector.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/callback/debug_message_collector.py b/callback/debug_message_collector.py index 6d23fbb..0eb12b4 100644 --- a/callback/debug_message_collector.py +++ b/callback/debug_message_collector.py @@ -44,10 +44,11 @@ class CallbackModule(CallbackBase): dictionary of debug tasks. The message includes rendered template data if jinja2 templates were used to generate the debug output. """ - self.debug_tasks[result._task._uuid] = { - 'name': result._task.name, - 'msg': result._result['msg'], - } + if result._task.action == 'debug': + self.debug_tasks[result._task._uuid] = { + 'name': result._task.name, + 'msg': result._result['msg'], + } def v2_playbook_on_stats(self, stats): """