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
This commit is contained in:
Major Hayden 2016-12-12 10:46:56 -06:00
parent 6d2859789f
commit db492e7f5b

View File

@ -44,6 +44,7 @@ class CallbackModule(CallbackBase):
dictionary of debug tasks. The message includes rendered template data dictionary of debug tasks. The message includes rendered template data
if jinja2 templates were used to generate the debug output. if jinja2 templates were used to generate the debug output.
""" """
if result._task.action == 'debug':
self.debug_tasks[result._task._uuid] = { self.debug_tasks[result._task._uuid] = {
'name': result._task.name, 'name': result._task.name,
'msg': result._result['msg'], 'msg': result._result['msg'],