misty 1.5.1 → 1.5.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/misty/auth/token/v3.rb +17 -14
- data/lib/misty/openstack/api/keystone/v3.rb +1 -1
- data/lib/misty/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 39ef5d2b5855f445d3202c466f0b6d54ee673b47
|
4
|
+
data.tar.gz: 99f2298d30b27b21ffdb7ab4be9e8acba981b3f0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: da385e4e6c2b71bf348722fc41268295af80f4b6956f5f9a9d2dd1aa7d9e4007a1db09624df71d131576d859c1ff232badab35d0215f7e9da09c85bf5067e70f
|
7
|
+
data.tar.gz: d4d5166a02c894ffe507e5dd0edab32b2aa07c93e942da1fabda2206b52bd60510252a0fe9d6b14f611ef23c8a90e0220fce808494923f3b20fe2af1856cde09
|
data/lib/misty/auth/token/v3.rb
CHANGED
@@ -47,15 +47,17 @@ module Misty
|
|
47
47
|
|
48
48
|
def set_credentials(auth)
|
49
49
|
if auth[:project_id] || auth[:project]
|
50
|
-
|
51
|
-
|
50
|
+
@project = Misty::Auth::ProjectScope.new(auth[:project_id], auth[:project])
|
51
|
+
|
52
|
+
if auth[:project_domain_id] || auth[:project_domain]
|
53
|
+
@project.domain = Misty::Auth::Name.new(auth[:project_domain_id], auth[:project_domain])
|
52
54
|
else
|
53
|
-
|
54
|
-
|
55
|
+
if auth[:domain_id] || auth[:domain]
|
56
|
+
@project.domain = Misty::Auth::Name.new(auth[:domain_id], auth[:domain])
|
57
|
+
else
|
58
|
+
@project.domain = Misty::Auth::Name.new(DOMAIN_ID, nil)
|
59
|
+
end
|
55
60
|
end
|
56
|
-
|
57
|
-
@project = Misty::Auth::ProjectScope.new(auth[:project_id], auth[:project])
|
58
|
-
@project.domain = Misty::Auth::Name.new(project_domain_id, auth[:project_domain])
|
59
61
|
else
|
60
62
|
# scope: domain
|
61
63
|
if auth[:domain_id] || auth[:domain]
|
@@ -70,16 +72,17 @@ module Misty
|
|
70
72
|
@token = auth[:token]
|
71
73
|
else
|
72
74
|
@user = Misty::Auth::User.new(auth[:user_id], auth[:user])
|
75
|
+
@user.password = auth[:password]
|
73
76
|
|
74
|
-
if auth[:user_domain_id]
|
75
|
-
|
77
|
+
if auth[:user_domain_id] || auth[:user_domain]
|
78
|
+
@user.domain = Misty::Auth::Name.new(auth[:user_domain_id], auth[:user_domain])
|
76
79
|
else
|
77
|
-
|
78
|
-
|
80
|
+
if auth[:domain_id] || auth[:domain]
|
81
|
+
@user.domain = Misty::Auth::Name.new(auth[:domain_id], auth[:domain])
|
82
|
+
else
|
83
|
+
@user.domain = Misty::Auth::Name.new(DOMAIN_ID, nil)
|
84
|
+
end
|
79
85
|
end
|
80
|
-
|
81
|
-
@user.domain = Misty::Auth::Name.new(user_domain_id, user_domain)
|
82
|
-
@user.password = auth[:password]
|
83
86
|
end
|
84
87
|
|
85
88
|
credentials
|
data/lib/misty/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: misty
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.5.
|
4
|
+
version: 1.5.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Gilles Dubreuil
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-03-
|
11
|
+
date: 2018-03-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: json
|