From 00856a9bac2c8993e7fa7291af0981d990c49369 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Toshio=20=E3=81=8F=E3=82=89=E3=81=A8=E3=81=BF?= Date: Sat, 30 Jan 2016 04:42:15 +0000 Subject: [PATCH] Call the superclas so that we can see that it was invoked --- callback_plugins/logdetail2.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/callback_plugins/logdetail2.py b/callback_plugins/logdetail2.py index cc626dd602..1d1170a9a6 100644 --- a/callback_plugins/logdetail2.py +++ b/callback_plugins/logdetail2.py @@ -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)