Skip to content

Commit

Permalink
Add class_by_ems to find correct EMS for Template
Browse files Browse the repository at this point in the history
  • Loading branch information
andyvesel committed Apr 17, 2018
1 parent 59be379 commit 8defcf7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions app/models/manageiq/providers/cloud_manager/template.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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}",
Expand Down

0 comments on commit 8defcf7

Please sign in to comment.