From 89ed4ebb2904456ad274f097efbe972b11f30827 Mon Sep 17 00:00:00 2001 From: Jared Tabor Date: Mon, 14 Aug 2017 16:44:12 -0700 Subject: [PATCH] Show IG name on job results if it comes from the socket for "waiting" messages --- awx/ui/client/src/job-results/job-results.controller.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/awx/ui/client/src/job-results/job-results.controller.js b/awx/ui/client/src/job-results/job-results.controller.js index c787c891bb..e880994a71 100644 --- a/awx/ui/client/src/job-results/job-results.controller.js +++ b/awx/ui/client/src/job-results/job-results.controller.js @@ -694,6 +694,12 @@ function(jobData, jobDataOptions, jobLabels, jobFinished, count, $scope, ParseTy parseInt($scope.job.id,10)) { // controller is defined, so set the job_status $scope.job_status = data.status; + if(_.has(data, 'instance_group_name')){ + $scope.job.instance_group = true; + $scope.job.summary_fields.instance_group = { + "name": data.instance_group_name + }; + } if (data.status === "running") { if (!runTimeElapsedTimer) { runTimeElapsedTimer = workflowResultsService.createOneSecondTimer(moment(), updateJobElapsedTimer);