# File lib/deltacloud/drivers/rhevm/rhevm_driver.rb, line 168 def create_instance(credentials, image_id, opts={}) client = new_client(credentials) params = {} safely do params[:name] = opts[:name] if opts[:name] params[:realm_id] = opts[:realm_id] if opts[:realm_id] params[:hwp_id] = opts[:hwp_id] if opts[:hwp_id] params[:hwp_memory] = opts[:hwp_memory] if opts[:hwp_memory] params[:hwp_cpu] = opts[:hwp_cpu] if opts[:hwp_cpu] convert_instance(client, client.create_vm(image_id, params)) end end