diff --git a/app/models/manageiq/providers/inventory/persister/builder/shared.rb b/app/models/manageiq/providers/inventory/persister/builder/shared.rb index 653209706e9..60107ba06da 100644 --- a/app/models/manageiq/providers/inventory/persister/builder/shared.rb +++ b/app/models/manageiq/providers/inventory/persister/builder/shared.rb @@ -37,6 +37,16 @@ def vendor 'unknown' end + def ext_management_system + add_properties( + :manager_ref => %i(guid), + :custom_save_block => lambda do |ems, inventory_collection| + ems_attrs = inventory_collection.data.first&.attributes + ems.update_attributes!(ems_attrs) if ems_attrs + end + ) + end + def vms vm_template_shared end