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