mirror of
https://github.com/ansible/awx.git
synced 2026-03-06 19:21:06 -03:30
Added logic to not show the loop summary events in the UI by looking at event_data.event_loop.
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
*
|
||||
* All Rights Reserved
|
||||
*************************************************/
|
||||
|
||||
|
||||
/**
|
||||
* @ngdoc function
|
||||
* @name helpers.function:HostEventsViewer
|
||||
@@ -273,6 +273,13 @@ export default
|
||||
.success(function(data) {
|
||||
var lastID;
|
||||
scope.hostViewSearching = false;
|
||||
// Loop across the events and remove any events where
|
||||
// event_data.event_loop is not null
|
||||
for(var i=data.results.length-1; i>=0; i--){
|
||||
if(data.results[i].event_data && data.results[i].event_data.event_loop) {
|
||||
data.results.splice(i, 1);
|
||||
}
|
||||
}
|
||||
if (data.results.length > 0) {
|
||||
lastID = data.results[data.results.length - 1].id;
|
||||
}
|
||||
|
||||
@@ -1021,7 +1021,7 @@ export default
|
||||
}
|
||||
}
|
||||
|
||||
if (event.event !== "runner_on_no_hosts") {
|
||||
if (event.event !== "runner_on_no_hosts" && (!event.event_data || (!event.event_data.event_loop || event.event_data.event_loop === null))) {
|
||||
scope.hostResults.push({
|
||||
id: event.id,
|
||||
status: status,
|
||||
|
||||
Reference in New Issue
Block a user