mirror of
https://github.com/ansible/awx.git
synced 2026-01-15 03:40:42 -03:30
fix old job no event case
This commit is contained in:
parent
7385d66f3f
commit
d80b8fa305
@ -455,6 +455,13 @@ function(jobData, jobDataOptions, jobLabels, jobFinished, count, $scope, ParseTy
|
||||
var getSkeleton = function(url) {
|
||||
jobResultsService.getEvents(url)
|
||||
.then(events => {
|
||||
// old job check: if the job is complete, there is result stdout, and
|
||||
// there are no job events, it's an old job
|
||||
if ($scope.jobFinished) {
|
||||
$scope.showLegacyJobErrorMessage = $scope.job.result_stdout.length &&
|
||||
!events.results.length;
|
||||
}
|
||||
|
||||
events.results.forEach(event => {
|
||||
if (event.start_line === 0 && event.end_line === 0) {
|
||||
$scope.isOld++;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user