vendor/fog/lib/fog/openstack.rb in cifrado-0.2.0 vs vendor/fog/lib/fog/openstack.rb in cifrado-0.2.1
- old
+ new
@@ -59,11 +59,10 @@
:expects => [200, 204],
:headers => {
'X-Auth-Key' => @openstack_api_key,
'X-Auth-User' => @openstack_username
},
- :host => uri.host,
:method => 'GET',
:path => (uri.path and not uri.path.empty?) ? uri.path : 'v1.0'
})
return {
@@ -95,10 +94,9 @@
"#{uri.scheme}://#{uri.host}:#{uri.port}/v2.0/tenants", false, connection_options).request({
:expects => [200, 204],
:headers => {'Content-Type' => 'application/json',
'Accept' => 'application/json',
'X-Auth-Token' => body['access']['token']['id']},
- :host => uri.host,
:method => 'GET'
})
body = Fog::JSON.decode(response.body)
if body['tenants'].empty?