mirror of
https://github.com/ansible/awx.git
synced 2026-03-08 21:19:26 -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,
|
||||
'reported_hosts': 0,
|
||||
'skipped_count': 0,
|
||||
'unreachable_count': 0,
|
||||
'successful_count': 0,
|
||||
}
|
||||
|
||||
@@ -1654,6 +1655,9 @@ class JobJobTasksList(BaseJobEventsList):
|
||||
task_data['changed'] = True
|
||||
else:
|
||||
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':
|
||||
task_data['host_count'] += child_data['num']
|
||||
task_data['reported_hosts'] += child_data['num']
|
||||
|
||||
Reference in New Issue
Block a user