openstack-compute 1.0.1 → 1.0.2
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/lib/openstack/compute/authentication.rb +2 -2
- metadata +4 -4
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.0.
|
1
|
+
1.0.2
|
@@ -8,7 +8,7 @@ module Compute
|
|
8
8
|
# svrmgmtscheme, authtoken, and authok variables on the connection.
|
9
9
|
# If it fails, it raises an exception.
|
10
10
|
def self.init(conn)
|
11
|
-
if conn.auth_path =~ /.*v2.0
|
11
|
+
if conn.auth_path =~ /.*v2.0\/?$/
|
12
12
|
AuthV20.new(conn)
|
13
13
|
else
|
14
14
|
AuthV10.new(conn)
|
@@ -33,7 +33,7 @@ module Compute
|
|
33
33
|
end
|
34
34
|
|
35
35
|
auth_data = JSON.generate({ "passwordCredentials" => { "username" => connection.authuser, "password" => connection.authkey }})
|
36
|
-
response = server.post(connection.auth_path, auth_data, {'Content-Type' => 'application/json'})
|
36
|
+
response = server.post(connection.auth_path.chomp("/")+"/tokens", auth_data, {'Content-Type' => 'application/json'})
|
37
37
|
if (response.code =~ /^20./)
|
38
38
|
resp_data=JSON.parse(response.body)
|
39
39
|
connection.authtoken = resp_data['auth']['token']['id']
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: openstack-compute
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 19
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 1
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 1.0.
|
9
|
+
- 2
|
10
|
+
version: 1.0.2
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Dan Prince
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2011-
|
18
|
+
date: 2011-09-07 00:00:00 -04:00
|
19
19
|
default_executable:
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|