diff --git a/app/models/manageiq/providers/cloud_manager/template.rb b/app/models/manageiq/providers/cloud_manager/template.rb index 54a7e733bef..e58fe78adf7 100644 --- a/app/models/manageiq/providers/cloud_manager/template.rb +++ b/app/models/manageiq/providers/cloud_manager/template.rb @@ -20,6 +20,10 @@ def self.eligible_for_provisioning ManageIQ::Providers::Openstack::CloudManager::VolumeSnapshotTemplate)) end + def self.class_by_ems(ext_management_system) + ext_management_system.class::Template + end + def self.create_image_queue(userid, ext_management_system, options = {}) task_opts = { :action => "Creating Cloud Template for user #{userid}", @@ -27,7 +31,7 @@ def self.create_image_queue(userid, ext_management_system, options = {}) } queue_opts = { - :class_name => self.class.name, + :class_name => self.name, :method_name => 'create_image', :role => 'ems_operations', :zone => ext_management_system.my_zone,