Merge "Fix function invocations"

This commit is contained in:
Zuul 2018-02-09 06:08:10 +00:00 committed by Gerrit Code Review
commit bed5df2431
1 changed files with 2 additions and 2 deletions

View File

@ -154,7 +154,7 @@ class CallbackModule(CallbackBase):
# The task is a list of items under `results` # The task is a list of items under `results`
for item in result_dict['results']: for item in result_dict['results']:
if item.get('failed', False): if item.get('failed', False):
print_failure_message(host_name, task_name, item) print_failure_message(host_name, task_name, item, item)
else: else:
# The task is a "normal" module invocation # The task is a "normal" module invocation
print_failure_message(host_name, task_name, result_dict, print_failure_message(host_name, task_name, result_dict,
@ -167,7 +167,7 @@ class CallbackModule(CallbackBase):
host_name = result._host host_name = result._host
task_name = result._task.get_name() task_name = result._task.get_name()
results = {'msg': 'The host is unreachable.'} results = {'msg': 'The host is unreachable.'}
print_failure_message(host_name, task_name, results) print_failure_message(host_name, task_name, results, results)
def v2_playbook_on_stats(self, stats): def v2_playbook_on_stats(self, stats):
def failed(host): def failed(host):