mirror of
https://github.com/ansible/awx.git
synced 2024-10-31 15:21:13 +03:00
Merge pull request #278 from jaredevantabor/IG-on-job-deets
Show IG name on job results if it comes from the socket
This commit is contained in:
commit
969de1d5a6
@ -694,6 +694,12 @@ function(jobData, jobDataOptions, jobLabels, jobFinished, count, $scope, ParseTy
|
|||||||
parseInt($scope.job.id,10)) {
|
parseInt($scope.job.id,10)) {
|
||||||
// controller is defined, so set the job_status
|
// controller is defined, so set the job_status
|
||||||
$scope.job_status = data.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 (data.status === "running") {
|
||||||
if (!runTimeElapsedTimer) {
|
if (!runTimeElapsedTimer) {
|
||||||
runTimeElapsedTimer = workflowResultsService.createOneSecondTimer(moment(), updateJobElapsedTimer);
|
runTimeElapsedTimer = workflowResultsService.createOneSecondTimer(moment(), updateJobElapsedTimer);
|
||||||
|
Loading…
Reference in New Issue
Block a user