mirror of
https://github.com/ansible/awx.git
synced 2026-05-13 20:37:39 -02:30
Job detail page
Added support for the garbled playbook: https://trello.com/c/UA2oIdhd/284-needs-to-be-a-better-indication-when-a-play-is-failed-due-to-syntax-issue-without-events
This commit is contained in:
@@ -435,6 +435,12 @@ function JobDetailController ($location, $rootScope, $scope, $compile, $routePar
|
||||
scope.activePlay = data.results[0].id;
|
||||
}
|
||||
scope.selectedPlay = scope.activePlay;
|
||||
} else {
|
||||
// if we are here, there are no plays and the job has failed, let the user know they may want to consult stdout
|
||||
if (scope.job_status.status === 'failed' || scope.job_status.status === 'error' &&
|
||||
(!scope.job_status.explanation)) {
|
||||
scope.job_status.explanation = "<a href=\"/#/jobs/" + scope.job_id + "/stdout\" target=\"_blank\">View stdout for more detail</a>";
|
||||
}
|
||||
}
|
||||
data.results.forEach(function(event, idx) {
|
||||
var status, status_text, start, end, elapsed, ok, changed, failed, skipped;
|
||||
|
||||
Reference in New Issue
Block a user