Skip to content

Commit

Permalink
Merge pull request #15475 from zakiva/add_miq_class
Browse files Browse the repository at this point in the history
Container Template: Add :miq_class for each object
  • Loading branch information
chessbyte authored Jul 6, 2017
2 parents 52a875b + 2de55f8 commit a177adf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/container_template.rb
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ def instantiate(params, project = nil)
:objects => objects,
:parameters => params)
create_objects(processed_template['objects'], project)
@created_objects.each { |obj| obj[:kind] = MIQ_ENTITY_MAPPING[obj[:kind]] }
@created_objects.each { |obj| obj[:miq_class] = MIQ_ENTITY_MAPPING[obj[:kind]] }
end

def process_template(client, template)
Expand Down

0 comments on commit a177adf

Please sign in to comment.