From 94e843dc712597f7c0043eeb6da7e4f4a0254e90 Mon Sep 17 00:00:00 2001 From: Matthew Jones Date: Thu, 12 Jun 2014 16:09:41 -0400 Subject: [PATCH] Make sure we include the state flags for the plays as well as the counts --- awx/api/views.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/awx/api/views.py b/awx/api/views.py index 341450e554..343db6c210 100644 --- a/awx/api/views.py +++ b/awx/api/views.py @@ -1506,10 +1506,10 @@ class JobJobPlaysList(BaseJobEventsList): ok_count = change_aggregate['id__count'] else: changed_count = change_aggregate['id__count'] - play_details['ok'] = ok_count - play_details['failed'] = failed_count - play_details['changed'] = changed_count - play_details['skipped'] = skipped_count + play_details['ok_count'] = ok_count + play_details['failed_count'] = failed_count + play_details['changed_count'] = changed_count + play_details['skipped_count'] = skipped_count all_plays.append(play_details) return Response(all_plays)