From 02330540d49506f635d2a84d9b27ea0458b1be9f Mon Sep 17 00:00:00 2001 From: Boris Odnopozov Date: Wed, 28 Aug 2019 22:21:43 +0300 Subject: [PATCH] Fix inverse_of for DistributedVirtualSwitch This caused the graph refresh fail for ovirt. required for: https://github.com/ManageIQ/manageiq-providers-ovirt/pull/401 --- .../providers/infra_manager/distributed_virtual_switch.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/manageiq/providers/infra_manager/distributed_virtual_switch.rb b/app/models/manageiq/providers/infra_manager/distributed_virtual_switch.rb index 152bea38f6d..c0c9b721f79 100644 --- a/app/models/manageiq/providers/infra_manager/distributed_virtual_switch.rb +++ b/app/models/manageiq/providers/infra_manager/distributed_virtual_switch.rb @@ -1,3 +1,3 @@ class ManageIQ::Providers::InfraManager::DistributedVirtualSwitch < ::Switch - belongs_to :ext_management_system, :foreign_key => :ems_id, :inverse_of => :distributed_virtual_switch + belongs_to :ext_management_system, :foreign_key => :ems_id, :inverse_of => :distributed_virtual_switches, :class_name => "ManageIQ::Providers::InfraManager" end