From 0aba7d3a8a2597f083d5965ece0004909aeb3390 Mon Sep 17 00:00:00 2001 From: Adam Grare Date: Fri, 1 Mar 2024 13:40:48 -0500 Subject: [PATCH] Fix parent_manager class --- app/models/manageiq/providers/kubevirt/infra_manager.rb | 2 +- spec/factories/ext_management_system.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/models/manageiq/providers/kubevirt/infra_manager.rb b/app/models/manageiq/providers/kubevirt/infra_manager.rb index 634cb3b..c5b0c36 100644 --- a/app/models/manageiq/providers/kubevirt/infra_manager.rb +++ b/app/models/manageiq/providers/kubevirt/infra_manager.rb @@ -3,7 +3,7 @@ class ManageIQ::Providers::Kubevirt::InfraManager < ManageIQ::Providers::InfraMa belongs_to :parent_manager, :foreign_key => :parent_ems_id, - :class_name => "ManageIQ::Providers::ContainerManager", + :class_name => "ManageIQ::Providers::Kubernetes::ContainerManager", :inverse_of => :infra_manager delegate :authentication_check, diff --git a/spec/factories/ext_management_system.rb b/spec/factories/ext_management_system.rb index cdbb2a4..b75a46d 100644 --- a/spec/factories/ext_management_system.rb +++ b/spec/factories/ext_management_system.rb @@ -3,6 +3,6 @@ :aliases => ["manageiq/providers/kubevirt/infra_manager"], :class => "ManageIQ::Providers::Kubevirt::InfraManager", :parent => :ems_infra do - parent_manager { FactoryBot.create(:ems_container) } + parent_manager { FactoryBot.create(:ems_kubernetes) } end end