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:
parent
6d2859789f
commit
db492e7f5b
@ -44,10 +44,11 @@ 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.
|
||||||
"""
|
"""
|
||||||
self.debug_tasks[result._task._uuid] = {
|
if result._task.action == 'debug':
|
||||||
'name': result._task.name,
|
self.debug_tasks[result._task._uuid] = {
|
||||||
'msg': result._result['msg'],
|
'name': result._task.name,
|
||||||
}
|
'msg': result._result['msg'],
|
||||||
|
}
|
||||||
|
|
||||||
def v2_playbook_on_stats(self, stats):
|
def v2_playbook_on_stats(self, stats):
|
||||||
"""
|
"""
|
||||||
|
Loading…
Reference in New Issue
Block a user