mirror of
https://github.com/ansible/awx.git
synced 2026-05-05 08:27:39 -02:30
Fix some busted job stdout end-line calculation under certain
conditions. Make it to where the ui re-uses the endpoint from the last stdout request cycle instead of adding one to it since we are not left-inclusive on list slicing.
This commit is contained in:
@@ -237,7 +237,7 @@ function JobStdoutController ($log, $rootScope, $scope, $compile, $routeParams,
|
||||
|
||||
function getNextSection() {
|
||||
// get the next range of data from the API
|
||||
var start = loaded_sections[loaded_sections.length - 1].end + 1, url;
|
||||
var start = loaded_sections[loaded_sections.length - 1].end, url;
|
||||
url = stdout_url + '?format=json&start_line=' + start + '&end_line=' + (start + page_size);
|
||||
$('#stdoutMoreRowsBottom').fadeIn();
|
||||
Rest.setUrl(url);
|
||||
|
||||
Reference in New Issue
Block a user