mirror of
https://github.com/ansible/awx.git
synced 2026-05-11 03:17:38 -02:30
Merge pull request #5897 from jlmitch5/fixLegacyStdout
Fix legacy stdout
This commit is contained in:
@@ -451,13 +451,6 @@ function(jobData, jobDataOptions, jobLabels, jobFinished, count, $scope, ParseTy
|
|||||||
var getSkeleton = function(url) {
|
var getSkeleton = function(url) {
|
||||||
jobResultsService.getEvents(url)
|
jobResultsService.getEvents(url)
|
||||||
.then(events => {
|
.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 => {
|
events.results.forEach(event => {
|
||||||
if (event.start_line === 0 && event.end_line === 0) {
|
if (event.start_line === 0 && event.end_line === 0) {
|
||||||
$scope.isOld++;
|
$scope.isOld++;
|
||||||
|
|||||||
Reference in New Issue
Block a user