mirror of
https://github.com/ansible/awx.git
synced 2026-01-16 04:10:44 -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:
parent
f2284a0098
commit
9e3d4a99d2
@ -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,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user