1
0
mirror of https://github.com/ansible/awx.git synced 2024-11-01 16:51:11 +03:00

Re-fixed an error from a merge conflict.

This commit is contained in:
Luke Sneeringer 2014-06-19 08:01:57 -05:00
parent 23b617b580
commit c8e5892d54

View File

@ -1600,24 +1600,24 @@ class JobJobTasksList(BaseJobEventsList):
for child_data in data.get(task_start_event.id, []):
if child_data['event'] == 'runner_on_failed':
task_data['failed'] = True
task_data['host_count'] += 1
task_data['reported_hosts'] += 1
task_data['failed_count'] += 1
task_data['host_count'] += child_data['num']
task_data['reported_hosts'] += child_data['num']
task_data['failed_count'] += child_data['num']
elif child_data['event'] == 'runner_on_ok':
task_data['host_count'] += 1
task_data['reported_hosts'] += 1
task_data['host_count'] += child_data['num']
task_data['reported_hosts'] += child_data['num']
if child_data['changed']:
task_data['changed_count'] += 1
task_data['changed_count'] += child_data['num']
task_data['changed'] = True
else:
task_data['successful_count'] += 1
task_data['successful_count'] += child_data['num']
elif child_data['event'] == 'runner_on_skipped':
task_data['host_count'] += 1
task_data['reported_hosts'] += 1
task_data['skipped_count'] += 1
task_data['host_count'] += child_data['num']
task_data['reported_hosts'] += child_data['num']
task_data['skipped_count'] += child_data['num']
elif child_data['event'] == 'runner_on_error':
task_data['host_count'] += 1
task_data['reported_hosts'] += 1
task_data['host_count'] += child_data['num']
task_data['reported_hosts'] += child_data['num']
task_data['failed'] = True
task_data['failed_count'] += child_data['num']
elif child_data['event'] == 'runner_on_no_hosts':