Call the superclas so that we can see that it was invoked

This commit is contained in:
Toshio くらとみ 2016-01-30 04:42:15 +00:00
parent 2f4c5bd79f
commit 00856a9bac

View file

@ -162,7 +162,7 @@ class CallbackModule(CallbackBase):
"""
logs playbook results, per host, in /var/log/ansible/hosts
"""
CALLBACK_NAME = 'logdetail'
CALLBACK_NAME = 'logdetail2'
CALLBACK_TYPE = 'notification'
CALLBACK_VERSION = 2.0
CALLBACK_NEEDS_WHITELIST = True
@ -172,6 +172,8 @@ class CallbackModule(CallbackBase):
self._play_count = 0
self.task = None
super(CallbackModule, self).__init__()
def runner_on_failed(self, result, ignore_errors=False):
category = 'FAILED'
logmech.log(result._host.get_name(), category, result._result, self.task, self._task_count)