diff options
| author | Toshio くらとみ <toshio@batcave01.phx2.fedoraproject.org> | 2016-01-30 04:42:15 +0000 |
|---|---|---|
| committer | Toshio くらとみ <toshio@batcave01.phx2.fedoraproject.org> | 2016-01-30 04:42:15 +0000 |
| commit | 00856a9bac2c8993e7fa7291af0981d990c49369 (patch) | |
| tree | 6614256b8a4b8943bc116652af101744d0aebbab /callback_plugins | |
| parent | 2f4c5bd79fcc9061d689f9e234fa46c0fd73afe7 (diff) | |
| download | ansible-00856a9bac2c8993e7fa7291af0981d990c49369.tar.gz ansible-00856a9bac2c8993e7fa7291af0981d990c49369.tar.xz ansible-00856a9bac2c8993e7fa7291af0981d990c49369.zip | |
Call the superclas so that we can see that it was invoked
Diffstat (limited to 'callback_plugins')
| -rw-r--r-- | callback_plugins/logdetail2.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/callback_plugins/logdetail2.py b/callback_plugins/logdetail2.py index cc626dd60..1d1170a9a 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) |
