1
0
Fork 0
mirror of https://github.com/fog/fog.git synced 2022-11-09 13:51:43 -05:00

[stormondemand|compute] Fix request path

This commit is contained in:
Eric Wong 2013-05-21 16:15:56 +08:00
parent 774d53edf9
commit e3b5730768

View file

@ -5,8 +5,7 @@ module Fog
module Compute
class StormOnDemand < Fog::Service
API_URL = 'https://api.stormondemand.com'
API_VERSION = 'v1'
API_URL = 'https://api.stormondemand.com/v1'
requires :storm_on_demand_username, :storm_on_demand_password
recognizes :storm_on_demand_auth_url
@ -110,7 +109,7 @@ module Fog
'Authorization' => 'Basic ' << Base64.encode64("#{@storm_on_demand_username}:#{@storm_on_demand_password}").chomp
}.merge!(params[:headers] || {}),
:host => @host,
:path => "#{@path}/#{API_VERSION}/#{params[:path]}",
:path => "#{@path}/#{params[:path]}",
:expects => 200,
:method => :post
}))