diff --git a/app/models/manageiq/providers/inventory/persister/builder/infra_manager.rb b/app/models/manageiq/providers/inventory/persister/builder/infra_manager.rb index 8e010e46e003..b9bc9513a381 100644 --- a/app/models/manageiq/providers/inventory/persister/builder/infra_manager.rb +++ b/app/models/manageiq/providers/inventory/persister/builder/infra_manager.rb @@ -205,9 +205,17 @@ def host_switches ) end - def switches + def host_virtual_switches add_properties( - :manager_ref => %i(uid_ems), # TODO looks like switches are using a bad association, this one is defined as through hosts + :manager_ref => %i(host uid_ems), + :parent_inventory_collections => %i(hosts) + ) + add_common_default_values + end + + def distributed_virtual_switches + add_properties( + :manager_ref => %i(uid_ems) ) add_common_default_values end