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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 0c484478917eb09469e637f0b6c4f3ebe46c977b
4
- data.tar.gz: c1200a007c58cc7cced9a07fb1e0b4e51e60cc5e
3
+ metadata.gz: 39ef5d2b5855f445d3202c466f0b6d54ee673b47
4
+ data.tar.gz: 99f2298d30b27b21ffdb7ab4be9e8acba981b3f0
5
5
  SHA512:
6
- metadata.gz: e56315c7dcc72fe5d17e616ce48f0363962344d55e0859fb950f3f0641bb3c8cc5a3673fbd6ced7f835fe51bdce76a9c9a3a43ff35e1ced8218147faae87d147
7
- data.tar.gz: 34be9722e4a6d4993c749184e0fa7e923ab878ad34a7678612dccba3ca7dc66fd23f0435d658821dbfd47b43292de20f33808bfb299d3dd7a69b7c167ea32058
6
+ metadata.gz: da385e4e6c2b71bf348722fc41268295af80f4b6956f5f9a9d2dd1aa7d9e4007a1db09624df71d131576d859c1ff232badab35d0215f7e9da09c85bf5067e70f
7
+ data.tar.gz: d4d5166a02c894ffe507e5dd0edab32b2aa07c93e942da1fabda2206b52bd60510252a0fe9d6b14f611ef23c8a90e0220fce808494923f3b20fe2af1856cde09
@@ -47,15 +47,17 @@ module Misty
47
47
 
48
48
  def set_credentials(auth)
49
49
  if auth[:project_id] || auth[:project]
50
- if auth[:project_domain_id].nil? && auth[:project_domain].nil?
51
- project_domain_id = DOMAIN_ID
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
- project_domain_id = auth[:project_domain_id] if auth[:project_domain_id]
54
- project_domain = auth[:project_domain] if auth[:project_domain]
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].nil? && auth[:user_domain].nil?
75
- user_domain_id = DOMAIN_ID
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
- user_domain_id = auth[:user_domain_id] if auth[:user_domain_id]
78
- user_domain = auth[:user_domain] if auth[:user_domain]
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
@@ -14,7 +14,7 @@ module Misty
14
14
  include Misty::Openstack::Extension
15
15
 
16
16
  def service_types
17
- %w(identity)
17
+ %w(identity identityv3)
18
18
  end
19
19
  end
20
20
  end
@@ -1,3 +1,3 @@
1
1
  module Misty
2
- VERSION = '1.5.1'
2
+ VERSION = '1.5.2'
3
3
  end
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.1
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-13 00:00:00.000000000 Z
11
+ date: 2018-03-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: json