mirror of
https://github.com/ansible/awx.git
synced 2026-05-08 01:47:35 -02:30
Add unreachable counts to job tasks endpoint
This commit is contained in:
@@ -1635,6 +1635,7 @@ class JobJobTasksList(BaseJobEventsList):
|
|||||||
task_start_event.task,
|
task_start_event.task,
|
||||||
'reported_hosts': 0,
|
'reported_hosts': 0,
|
||||||
'skipped_count': 0,
|
'skipped_count': 0,
|
||||||
|
'unreachable_count': 0,
|
||||||
'successful_count': 0,
|
'successful_count': 0,
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1654,6 +1655,9 @@ class JobJobTasksList(BaseJobEventsList):
|
|||||||
task_data['changed'] = True
|
task_data['changed'] = True
|
||||||
else:
|
else:
|
||||||
task_data['successful_count'] += child_data['num']
|
task_data['successful_count'] += child_data['num']
|
||||||
|
elif child_data['event'] == 'runner_on_unreachable':
|
||||||
|
task_data['host_count'] += child_data['num']
|
||||||
|
task_data['unreachable_count'] += child_data['num']
|
||||||
elif child_data['event'] == 'runner_on_skipped':
|
elif child_data['event'] == 'runner_on_skipped':
|
||||||
task_data['host_count'] += child_data['num']
|
task_data['host_count'] += child_data['num']
|
||||||
task_data['reported_hosts'] += child_data['num']
|
task_data['reported_hosts'] += child_data['num']
|
||||||
|
|||||||
Reference in New Issue
Block a user