From 6d44bdd5c78877ac0f871874797fd1eaafbd1258 Mon Sep 17 00:00:00 2001 From: Chris Houseknecht Date: Mon, 18 Aug 2014 15:55:51 -0400 Subject: [PATCH] Job Detail Page Additional fix for https://trello.com/c/WZ18zIqG/337-completed-job-detail-statistics-differ-between-realtime-and-page-refresh --- awx/ui/static/js/controllers/JobDetail.js | 2 +- awx/ui/static/js/helpers/JobDetail.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/awx/ui/static/js/controllers/JobDetail.js b/awx/ui/static/js/controllers/JobDetail.js index 29bf4ccb9d..624080756a 100644 --- a/awx/ui/static/js/controllers/JobDetail.js +++ b/awx/ui/static/js/controllers/JobDetail.js @@ -203,7 +203,7 @@ function JobDetailController ($location, $rootScope, $scope, $compile, $routePar else { name = ""; } - scope.jobData.hostSummaries[event.id] = { + scope.jobData.hostSummaries[name] = { id: name, name: name, ok: event.ok, diff --git a/awx/ui/static/js/helpers/JobDetail.js b/awx/ui/static/js/helpers/JobDetail.js index 14e2198351..c6e4314318 100644 --- a/awx/ui/static/js/helpers/JobDetail.js +++ b/awx/ui/static/js/helpers/JobDetail.js @@ -503,7 +503,7 @@ function($rootScope, $log, UpdatePlayStatus, UpdateHostStatus, AddHostResult, Ge } else { scope.jobData.hostSummaries[name] = { - id: host_id, + id: name, name: name, ok: (status === 'successful') ? 1 : 0, changed: (status === 'changed') ? 1 : 0,