Skip to content

Commit

Permalink
Merge pull request #231 from agrare/fix_parent_manager_class
Browse files Browse the repository at this point in the history
Fix parent_manager class to point to Kubernetes::ContainerManager
  • Loading branch information
Fryguy authored Mar 4, 2024
2 parents eb4c413 + 0aba7d3 commit 71a63af
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/models/manageiq/providers/kubevirt/infra_manager.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion spec/factories/ext_management_system.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 71a63af

Please sign in to comment.