Commit 06656571 authored by Jürgen Haas's avatar Jürgen Haas

Apply API changes to fluentd callback

parent d0841643
......@@ -126,9 +126,6 @@ class CallbackModule(CallbackBase):
self._log(logging.INFO, status, 'finish', 'Finish playbook %s' % self.playbook, extra=summarize_stat)
def v2_playbook_on_setup(self):
super(CallbackModule, self).v2_playbook_on_setup()
def v2_playbook_on_no_hosts_matched(self):
super(CallbackModule, self).v2_playbook_on_no_hosts_matched()
......@@ -166,6 +163,7 @@ class CallbackModule(CallbackBase):
self._log(logging.INFO, status, 'task', 'Task %s' % task_name, extra=result._result, host=result._host.name, task=task_name)
def v2_runner_on_failed(self, result, **kwargs):
result._result['failed'] = True
self.v2_runner_on_ok(result)
def v2_runner_on_unreachable(self, result):
......@@ -178,14 +176,12 @@ class CallbackModule(CallbackBase):
self.v2_runner_on_ok(result)
def v2_runner_on_async_failed(self, result):
result._result['failed'] = True
self.v2_runner_on_ok(result)
def v2_runner_on_skipped(self, result):
super(CallbackModule, self).v2_runner_on_skipped(result)
def v2_runner_on_file_diff(self, result, diff):
super(CallbackModule, self).v2_runner_on_file_diff(result, diff)
def v2_runner_retry(self, result):
super(CallbackModule, self).v2_runner_retry(result)
......@@ -193,15 +189,12 @@ class CallbackModule(CallbackBase):
self.v2_runner_on_ok(result)
def v2_runner_item_on_failed(self, result):
result._result['failed'] = True
self.v2_runner_on_ok(result)
def v2_runner_item_on_skipped(self, result):
super(CallbackModule, self).v2_runner_item_on_skipped(result)
def v2_runner_on_no_hosts(self, task):
super(CallbackModule, self).v2_runner_on_no_hosts(task)
##### OTHER callbacks #####
def v2_on_file_diff(self, result):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment