mirror of
https://github.com/ansible/awx.git
synced 2026-01-12 18:40:01 -03:30
fixed stdout caputure pending getting prepended when the standard out is not pending anymore
This commit is contained in:
parent
65a28787d3
commit
17924aedff
@ -252,7 +252,11 @@ export function JobStdoutController ($location, $log, $rootScope, $scope, $compi
|
||||
Rest.setUrl(url);
|
||||
Rest.get()
|
||||
.success( function(data) {
|
||||
$('#pre-container-content').append(data.content);
|
||||
if ($('#pre-container-content').html() === "stdout capture pending") {
|
||||
$('#pre-container-content').html(data.content);
|
||||
} else {
|
||||
$('#pre-container-content').append(data.content);
|
||||
}
|
||||
loaded_sections.push({
|
||||
start: (data.range.start < 0) ? 0 : data.range.start,
|
||||
end: data.range.end
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user