# File lib/deltacloud/drivers/rhevm/rhevm_driver.rb, line 114 def create_image(credentials, opts={}) client = new_client(credentials) unless opts[:name] instance = instances(credentials, :id => opts[:id]) raise "Specified instance '#{opts[:id]}' not found" template_name = "#{instance.first.name}-template" end safely do new_image = client.create_template(opts[:id], :name => (opts[:name] || template_name), :description => opts[:description]) convert_image(client, new_image) end end