diff --git a/app/models/manager_refresh/inventory_collection_default/infra_manager.rb b/app/models/manager_refresh/inventory_collection_default/infra_manager.rb index cf98bbccf1d..a5f8cfe9608 100644 --- a/app/models/manager_refresh/inventory_collection_default/infra_manager.rb +++ b/app/models/manager_refresh/inventory_collection_default/infra_manager.rb @@ -9,6 +9,15 @@ def vms(extra_attributes = {}) attributes.merge!(extra_attributes) end + def miq_templates(extra_attributes = {}) + attributes = { + :model_class => ::ManageIQ::Providers::InfraManager::Template, + :association => :miq_templates, + } + + attributes.merge!(extra_attributes) + end + def disks(extra_attributes = {}) attributes = { :model_class => ::Disk,