diff --git a/app/models/ems_refresh.rb b/app/models/ems_refresh.rb index 3045a229ccd..852a52ec7a6 100644 --- a/app/models/ems_refresh.rb +++ b/app/models/ems_refresh.rb @@ -3,6 +3,7 @@ module EmsRefresh extend EmsRefresh::SaveInventoryBlockStorage extend EmsRefresh::SaveInventoryCloud extend EmsRefresh::SaveInventoryInfra + extend EmsRefresh::SaveInventoryPhysicalInfra extend EmsRefresh::SaveInventoryContainer extend EmsRefresh::SaveInventoryMiddleware extend EmsRefresh::SaveInventoryDatawarehouse diff --git a/app/models/ems_refresh/save_inventory.rb b/app/models/ems_refresh/save_inventory.rb index 6c6d7082ee3..d0c7655a31b 100644 --- a/app/models/ems_refresh/save_inventory.rb +++ b/app/models/ems_refresh/save_inventory.rb @@ -12,6 +12,7 @@ def save_ems_inventory(ems, hashes, target = nil) case ems when EmsCloud then save_ems_cloud_inventory(ems, hashes, target) when EmsInfra then save_ems_infra_inventory(ems, hashes, target) + when EmsPhysicalInfra then save_ems_physical_infra_inventory(ems, hashes, target) when ManageIQ::Providers::AutomationManager then save_automation_manager_inventory(ems, hashes, target) when ManageIQ::Providers::ConfigurationManager then save_configuration_manager_inventory(ems, hashes, target) when ManageIQ::Providers::ContainerManager then save_ems_container_inventory(ems, hashes, target) diff --git a/app/models/physical_server.rb b/app/models/physical_server.rb index 375bbf20f4c..8fda121f54a 100644 --- a/app/models/physical_server.rb +++ b/app/models/physical_server.rb @@ -5,8 +5,6 @@ class PhysicalServer < ApplicationRecord belongs_to :ext_management_system, :foreign_key => :ems_id, :class_name => "ManageIQ::Providers::PhysicalInfraManager" - default_value_for :enabled, true - def name_with_details details % { :name => name,