diff --git a/awx/ui/client/src/inventories-hosts/inventories/list/host-summary-popover/host-summary-popover.directive.js b/awx/ui/client/src/inventories-hosts/inventories/list/host-summary-popover/host-summary-popover.directive.js index e180289984..7e6ae14f79 100644 --- a/awx/ui/client/src/inventories-hosts/inventories/list/host-summary-popover/host-summary-popover.directive.js +++ b/awx/ui/client/src/inventories-hosts/inventories/list/host-summary-popover/host-summary-popover.directive.js @@ -58,13 +58,15 @@ export default ['templateUrl', 'Wait', '$filter', '$compile', 'i18n', html += "\n"; data.results.forEach(function(row) { - html += "\n"; - html += "\n"; - html += "" + ($filter('longDate')(row.finished)) + ""; - html += "" + $filter('sanitize')(ellipsis(row.name)) + ""; - html += "\n"; + if ((scope.inventory.has_active_failures && row.status === 'failed') || (!scope.inventory.has_active_failures && row.status === 'successful')) { + html += "\n"; + html += "\n"; + html += "" + ($filter('longDate')(row.finished)) + ""; + html += "" + $filter('sanitize')(ellipsis(row.name)) + ""; + html += "\n"; + } }); html += "\n"; html += "\n";