diff --git a/awx/ui/client/features/output/details.component.js b/awx/ui/client/features/output/details.component.js index 23aa5c2a6d..6e5353f3b6 100644 --- a/awx/ui/client/features/output/details.component.js +++ b/awx/ui/client/features/output/details.component.js @@ -442,8 +442,8 @@ function getJobExplanationDetails () { return { label, less, more, showMore, hasMoreToShow }; } -function getResultTracebackDetails () { - const traceback = resource.model.get('result_traceback'); +function getResultTracebackDetails (resultTraceback) { + const traceback = resultTraceback || resource.model.get('result_traceback'); if (!traceback) { return null; @@ -871,7 +871,8 @@ function JobDetailsController ( instanceGroup, environment, artifacts, - executionNode + executionNode, + resultTraceback }) => { vm.started = getStartDetails(started); vm.finished = getFinishDetails(finished); @@ -883,6 +884,7 @@ function JobDetailsController ( vm.artifacts = getArtifactsDetails(artifacts); vm.executionNode = getExecutionNodeDetails(executionNode); vm.inventoryScm = getInventoryScmDetails(inventoryScm.id, inventoryScm.status); + vm.resultTraceback = getResultTracebackDetails(resultTraceback); vm.scmRevision = getSCMRevisionDetails(scmRevision); vm.instanceGroup = getInstanceGroupDetails(instanceGroup); vm.status = getStatusDetails(status); diff --git a/awx/ui/client/features/output/status.service.js b/awx/ui/client/features/output/status.service.js index 5196d12f64..ad3bbd8886 100644 --- a/awx/ui/client/features/output/status.service.js +++ b/awx/ui/client/features/output/status.service.js @@ -303,6 +303,12 @@ function JobStatusService (moment, message) { this.statsEvent = data; }; + this.setResultTraceback = traceback => { + if (!traceback) return; + + this.state.resultTraceback = traceback; + }; + this.setHostStatusCounts = counts => { counts = counts || {}; @@ -341,6 +347,7 @@ function JobStatusService (moment, message) { this.setEnvironment(model.get('custom_virtualenv')); this.setArtifacts(model.get('artifacts')); this.setExecutionNode(model.get('execution_node')); + this.setResultTraceback(model.get('result_traceback')); this.initHostStatusCounts({ model }); this.initPlaybookCounts({ model });