Skip to content

Commit

Permalink
Merge pull request #17308 from andyvesel/fixes_for_create_action_in_t…
Browse files Browse the repository at this point in the history
…emplate_model

Fixes for create action in Template model
  • Loading branch information
agrare authored Apr 18, 2018
2 parents 2c945ce + 8defcf7 commit 0c59e32
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion app/models/manageiq/providers/cloud_manager/template.rb
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,18 @@ 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}",
:userid => userid
}

queue_opts = {
:class_name => self.class.name,
:class_name => self.name,
:method_name => 'create_image',
:role => 'ems_operations',
:zone => ext_management_system.my_zone,
Expand Down

0 comments on commit 0c59e32

Please sign in to comment.