mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
[openstack] remove :host from Excon request params
This commit is contained in:
parent
80f150d428
commit
fe2b2d9f30
8 changed files with 4 additions and 12 deletions
|
@ -342,7 +342,6 @@ module Fog
|
|||
'Accept' => 'application/json',
|
||||
'X-Auth-Token' => @auth_token
|
||||
}.merge!(params[:headers] || {}),
|
||||
:host => @host,
|
||||
:path => "#{@path}/#{@tenant_id}/#{params[:path]}",
|
||||
:query => params[:query]
|
||||
}))
|
||||
|
|
|
@ -227,7 +227,6 @@ module Fog
|
|||
'Accept' => 'application/json',
|
||||
'X-Auth-Token' => @auth_token
|
||||
}.merge!(params[:headers] || {}),
|
||||
:host => @host,
|
||||
:path => "#{@path}/#{params[:path]}"#,
|
||||
}))
|
||||
rescue Excon::Errors::Unauthorized => error
|
||||
|
|
|
@ -148,7 +148,6 @@ module Fog
|
|||
'Content-Type' => 'application/json',
|
||||
'X-Auth-Token' => @auth_token
|
||||
}.merge!(params[:headers] || {}),
|
||||
:host => @host,
|
||||
:path => "#{@path}/#{params[:path]}"#,
|
||||
}))
|
||||
rescue Excon::Errors::Unauthorized => error
|
||||
|
|
|
@ -144,7 +144,6 @@ module Fog
|
|||
'Accept' => 'application/json',
|
||||
'X-Auth-Token' => @auth_token
|
||||
}.merge!(params[:headers] || {}),
|
||||
:host => @host,
|
||||
:path => "#{@path}/v2/#{params[:path]}"#,
|
||||
# Causes errors for some requests like tenants?limit=1
|
||||
# :query => ('ignore_awful_caching' << Time.now.to_i.to_s)
|
||||
|
|
|
@ -235,7 +235,6 @@ module Fog
|
|||
'Accept' => 'application/json',
|
||||
'X-Auth-Token' => @auth_token
|
||||
}.merge!(params[:headers] || {}),
|
||||
:host => @host,
|
||||
:path => "#{@path}/#{params[:path]}"#,
|
||||
}))
|
||||
rescue Excon::Errors::Unauthorized => error
|
||||
|
|
|
@ -142,7 +142,6 @@ module Fog
|
|||
'X-Auth-User' => @openstack_username,
|
||||
'X-Auth-Key' => @openstack_api_key
|
||||
}.merge!(params[:headers] || {}),
|
||||
:host => @host,
|
||||
:path => "#{@path}/#{@tenant_id}/#{params[:path]}",
|
||||
:query => params[:query]
|
||||
}))
|
||||
|
|
|
@ -152,7 +152,6 @@ module Fog
|
|||
'Accept' => 'application/json',
|
||||
'X-Auth-Token' => @auth_token
|
||||
}.merge!(params[:headers] || {}),
|
||||
:host => @host,
|
||||
:path => "#{@path}/#{params[:path]}",
|
||||
}))
|
||||
rescue Excon::Errors::Unauthorized => error
|
||||
|
|
|
@ -157,7 +157,6 @@ module Fog
|
|||
'Accept' => 'application/json',
|
||||
'X-Auth-Token' => @auth_token
|
||||
}.merge!(params[:headers] || {}),
|
||||
:host => @host,
|
||||
:path => "#{@path}/#{params[:path]}"#,
|
||||
}))
|
||||
rescue Excon::Errors::Unauthorized => error
|
||||
|
|
Loading…
Reference in a new issue