From 74bb8182b4ad38f82cc881be838a09df0f6682dc Mon Sep 17 00:00:00 2001 From: Yuri Rudman Date: Tue, 20 Mar 2018 18:14:17 -0400 Subject: [PATCH] filter out archived and orphaned VMs in 'Running VMs' filter https://bugzilla.redhat.com/show_bug.cgi?id=1504006 --- db/fixtures/miq_searches.yml | 30 +++++++++++++++++++++--------- 1 file changed, 21 insertions(+), 9 deletions(-) diff --git a/db/fixtures/miq_searches.yml b/db/fixtures/miq_searches.yml index 9db25fc27d7..9ffb5dd758f 100644 --- a/db/fixtures/miq_searches.yml +++ b/db/fixtures/miq_searches.yml @@ -67,9 +67,13 @@ description: Status / Running filter: !ruby/object:MiqExpression exp: - "=": - field: Vm-power_state - value: "on" + and: + - "=": + field: Vm-power_state + value: "on" + - "=": + field: Vm-active + value: "true" search_type: default db: Vm - attributes: @@ -673,9 +677,13 @@ description: Status / Running filter: !ruby/object:MiqExpression exp: - "=": - field: TemplateInfra-power_state - value: "on" + and: + - "=": + field: TemplateInfra-power_state + value: "on" + - "=": + field: VTemplateInfra-active + value: "true" search_type: default db: ManageIQ::Providers::InfraManager::Template - attributes: @@ -1125,9 +1133,13 @@ description: Status / Running filter: !ruby/object:MiqExpression exp: - "=": - field: VmInfra-power_state - value: "on" + and: + - "=": + field: VmInfra-power_state + value: "on" + - "=": + field: VmInfra-active + value: "true" search_type: default db: ManageIQ::Providers::InfraManager::Vm - attributes: