fog-openstack 0.2.3 → 0.2.4

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: 362207bad50a71d21e1fe227e4cb79ffe7017a7a
4
- data.tar.gz: 41be518eedaddc92fec6f07624ceaac32ed7091f
3
+ metadata.gz: 39f519ef6afd91ecb3bd840a2381b335b562140d
4
+ data.tar.gz: fd51741384a2dde87ba463b93e9edf622ea1821b
5
5
  SHA512:
6
- metadata.gz: a52af650149830c3ec723900097eeb59d0a6934350faf6b75ca44bf3ef3cdcf82f1b6167e4f7b2673680686d8cbf1cf52e192a5928a8762c2bc59a5abef80735
7
- data.tar.gz: 9f960ee557b840b2c1cae278beb5904b65518a42cf26ea2872ca1691bea67eb36bb2a64abd8bff0d9977024d11817755bcb0ece7f38c2a02adb2d7bc9eb14e55
6
+ metadata.gz: 943f041d6ff94696adabc94f35e7f613c736fbd7a711d80d80e69ffe6fdb391f27c931528cce7e647631ff1d4260d917c99944312bbc521a5cd4a89d4ccbbcf0
7
+ data.tar.gz: 3b5b331ad199b676780f956bde3369a183011de410de0eef91a84bb5798a6ebddca7ce9f34e92f97d264765b5997665f055bddae6770f9d62ea447022730a204
@@ -249,17 +249,12 @@ module Fog
249
249
  class Real
250
250
  include Fog::OpenStack::Core
251
251
 
252
- def default_service_type
253
- %w[baremetal]
252
+ def self.not_found_class
253
+ Fog::Baremetal::OpenStack::NotFound
254
254
  end
255
255
 
256
- # NOTE: uncommenting this should be treated as api-change!
257
- # def self.not_found_class
258
- # Fog::Baremetal::OpenStack::NotFound
259
- # end
260
-
261
- def default_path_prefix
262
- 'v1'
256
+ def default_service_type
257
+ %w[baremetal]
263
258
  end
264
259
  end
265
260
  end
@@ -14,7 +14,8 @@ module Fog
14
14
  class URLError < RuntimeError; end
15
15
 
16
16
  def self.build(auth)
17
- if auth[:openstack_tenant_id] || auth[:openstack_tenant]
17
+ if auth[:openstack_identity_api_version] =~ /(v)*2(\.0)*/i ||
18
+ auth[:openstack_tenant_id] || auth[:openstack_tenant]
18
19
  Fog::OpenStack::Auth::Token::V2.new(auth)
19
20
  else
20
21
  Fog::OpenStack::Auth::Token::V3.new(auth)
@@ -24,8 +24,6 @@ module Fog
24
24
  identity['tenantId'] = @tenant.id.to_s
25
25
  elsif @tenant.name
26
26
  identity['tenantName'] = @tenant.name.to_s
27
- else
28
- raise CredentialsError, "#{self.class}: No tenant available"
29
27
  end
30
28
 
31
29
  {'auth' => identity}
@@ -37,7 +35,7 @@ module Fog
37
35
 
38
36
  def user_credentials
39
37
  {
40
- 'username' => @user.name,
38
+ 'username' => @user.name.to_s,
41
39
  'password' => @user.password
42
40
  }
43
41
  end
@@ -1,5 +1,5 @@
1
1
  module Fog
2
2
  module OpenStack
3
- VERSION = '0.2.3'.freeze
3
+ VERSION = '0.2.4'.freeze
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fog-openstack
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.3
4
+ version: 0.2.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matt Darby
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2018-09-12 00:00:00.000000000 Z
11
+ date: 2018-09-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: fog-core