mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
[openstack|compute] authenticate_v2 fixes
* Add connection_options to Fog::Connection when authenticating so we can disable SSL cert verification for example. * Do not use hardcoded keystone 5000 port Sample code: conn = Fog::Compute.new({ :provider => 'OpenStack', :openstack_api_key => "changeme", :openstack_username => "user@bvox.net", :openstack_auth_url => "https://auth-server/v2.0/tokens", :connection_options => { :ssl_verify_peer => false } })
This commit is contained in:
parent
568d290ca9
commit
ceaa1daab1
1 changed files with 1 additions and 1 deletions
|
@ -107,7 +107,7 @@ module Fog
|
||||||
unless svc
|
unless svc
|
||||||
unless @openstack_tenant
|
unless @openstack_tenant
|
||||||
response = Fog::Connection.new(
|
response = Fog::Connection.new(
|
||||||
"#{uri.scheme}://#{uri.host}:5000/v2.0/tenants", false).request({
|
"#{uri.scheme}://#{uri.host}:#{uri.port}/v2.0/tenants", false, connection_options).request({
|
||||||
:expects => [200, 204],
|
:expects => [200, 204],
|
||||||
:headers => {'Content-Type' => 'application/json',
|
:headers => {'Content-Type' => 'application/json',
|
||||||
'X-Auth-Token' => body['access']['token']['id']},
|
'X-Auth-Token' => body['access']['token']['id']},
|
||||||
|
|
Loading…
Reference in a new issue