From b81a57fd990798bb118395e8e77bade0a36a690f Mon Sep 17 00:00:00 2001 From: Martin Slemr Date: Fri, 20 Jul 2018 15:53:06 +0200 Subject: [PATCH] IC custom_attributes->ems_custom_attributes + hosts_ in core --- .../definitions/infra_collections.rb | 24 ++----------------- 1 file changed, 2 insertions(+), 22 deletions(-) diff --git a/app/models/manageiq/providers/vmware/inventory/persister/definitions/infra_collections.rb b/app/models/manageiq/providers/vmware/inventory/persister/definitions/infra_collections.rb index 40383a2d9..8fc5c22c4 100644 --- a/app/models/manageiq/providers/vmware/inventory/persister/definitions/infra_collections.rb +++ b/app/models/manageiq/providers/vmware/inventory/persister/definitions/infra_collections.rb @@ -6,9 +6,11 @@ def initialize_infra_inventory_collections %i(customization_specs host_hardwares + host_guest_devices host_networks host_storages host_switches + host_system_services host_operating_systems miq_scsi_luns miq_scsi_targets @@ -18,8 +20,6 @@ def initialize_infra_inventory_collections end add_hosts - add_host_guest_devices - add_host_system_services %i(disks guest_devices @@ -76,26 +76,6 @@ def add_hosts end end - def add_host_guest_devices - add_collection(infra, :host_guest_devices) do |builder| - builder.add_properties( - :model_class => ::GuestDevice, - :manager_ref => %i(hardware uid_ems), - :parent_inventory_collections => %i(hosts) - ) - end - end - - def add_host_system_services - add_collection(infra, :host_system_services) do |builder| - builder.add_properties( - :model_class => ::SystemService, - :manager_ref => %i(host name), - :parent_inventory_collections => %i(hosts) - ) - end - end - def add_lans add_collection(infra, :lans) do |builder| builder.add_properties(