Call the superclas so that we can see that it was invoked
This commit is contained in:
parent
2f4c5bd79f
commit
00856a9bac
1 changed files with 3 additions and 1 deletions
|
@ -162,7 +162,7 @@ class CallbackModule(CallbackBase):
|
||||||
"""
|
"""
|
||||||
logs playbook results, per host, in /var/log/ansible/hosts
|
logs playbook results, per host, in /var/log/ansible/hosts
|
||||||
"""
|
"""
|
||||||
CALLBACK_NAME = 'logdetail'
|
CALLBACK_NAME = 'logdetail2'
|
||||||
CALLBACK_TYPE = 'notification'
|
CALLBACK_TYPE = 'notification'
|
||||||
CALLBACK_VERSION = 2.0
|
CALLBACK_VERSION = 2.0
|
||||||
CALLBACK_NEEDS_WHITELIST = True
|
CALLBACK_NEEDS_WHITELIST = True
|
||||||
|
@ -172,6 +172,8 @@ class CallbackModule(CallbackBase):
|
||||||
self._play_count = 0
|
self._play_count = 0
|
||||||
self.task = None
|
self.task = None
|
||||||
|
|
||||||
|
super(CallbackModule, self).__init__()
|
||||||
|
|
||||||
def runner_on_failed(self, result, ignore_errors=False):
|
def runner_on_failed(self, result, ignore_errors=False):
|
||||||
category = 'FAILED'
|
category = 'FAILED'
|
||||||
logmech.log(result._host.get_name(), category, result._result, self.task, self._task_count)
|
logmech.log(result._host.get_name(), category, result._result, self.task, self._task_count)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue