mirror of
https://github.com/ansible/awx.git
synced 2026-05-04 08:05:30 -02:30
Adding check for job detail properties
This commit is contained in:
@@ -202,7 +202,7 @@ function JobDetailController ($location, $rootScope, $scope, $compile, $routePar
|
|||||||
scope.removeLoadHostSummaries();
|
scope.removeLoadHostSummaries();
|
||||||
}
|
}
|
||||||
scope.removeHostSummaries = scope.$on('LoadHostSummaries', function() {
|
scope.removeHostSummaries = scope.$on('LoadHostSummaries', function() {
|
||||||
if(scope.job.related.job_host_summaries){
|
if(scope.job.related){
|
||||||
var url = scope.job.related.job_host_summaries + '?';
|
var url = scope.job.related.job_host_summaries + '?';
|
||||||
url += '&page_size=' + scope.hostSummariesMaxRows + '&order=host_name';
|
url += '&page_size=' + scope.hostSummariesMaxRows + '&order=host_name';
|
||||||
|
|
||||||
@@ -376,7 +376,9 @@ function JobDetailController ($location, $rootScope, $scope, $compile, $routePar
|
|||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
// no next event (task), get the end time of the play
|
// no next event (task), get the end time of the play
|
||||||
end = scope.jobData.plays[scope.activePlay].finished;
|
if(scope.jobData.plays[scope.activePlay]){
|
||||||
|
end = scope.jobData.plays[scope.activePlay].finished;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (end) {
|
if (end) {
|
||||||
|
|||||||
Reference in New Issue
Block a user