diff --git a/app/models/container_template.rb b/app/models/container_template.rb index 67c19fd82df..0a859dc06e0 100644 --- a/app/models/container_template.rb +++ b/app/models/container_template.rb @@ -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)