From dfa8328571eb6a6556afd0a03a09b883bb6c2dfc Mon Sep 17 00:00:00 2001 From: Tomas Coufal Date: Thu, 17 May 2018 16:34:47 +0200 Subject: [PATCH] Remove :match_via_decendants for ConfiguredSystem::ConfiguredSystem --- app/models/configuration_profile.rb | 2 +- app/models/manageiq/providers/automation_manager.rb | 2 +- app/models/manageiq/providers/configuration_manager.rb | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app/models/configuration_profile.rb b/app/models/configuration_profile.rb index aa5096176e8..e58aa98f01c 100644 --- a/app/models/configuration_profile.rb +++ b/app/models/configuration_profile.rb @@ -70,7 +70,7 @@ def tag_hash alias_method :configuration_manager, :manager def total_configured_systems - Rbac.filtered(configured_systems, :match_via_descendants => ConfiguredSystem).count + Rbac.filtered(configured_systems).count end def image_name diff --git a/app/models/manageiq/providers/automation_manager.rb b/app/models/manageiq/providers/automation_manager.rb index 5ff9019c44a..19ed7bb46e9 100644 --- a/app/models/manageiq/providers/automation_manager.rb +++ b/app/models/manageiq/providers/automation_manager.rb @@ -33,6 +33,6 @@ def total_configuration_profiles end def total_configured_systems - Rbac.filtered(configured_systems, :match_via_descendants => ConfiguredSystem).count + Rbac.filtered(configured_systems).count end end diff --git a/app/models/manageiq/providers/configuration_manager.rb b/app/models/manageiq/providers/configuration_manager.rb index 4151d91af9d..a5bfc08f0df 100644 --- a/app/models/manageiq/providers/configuration_manager.rb +++ b/app/models/manageiq/providers/configuration_manager.rb @@ -19,6 +19,6 @@ def total_configuration_profiles end def total_configured_systems - Rbac.filtered(configured_systems, :match_via_descendants => ConfiguredSystem).count + Rbac.filtered(configured_systems).count end end