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:
parent
774d53edf9
commit
e3b5730768
1 changed files with 2 additions and 3 deletions
|
@ -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
|
||||
}))
|
||||
|
|
Loading…
Add table
Reference in a new issue