fog-openstack 0.2.3 → 0.2.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 39f519ef6afd91ecb3bd840a2381b335b562140d
|
4
|
+
data.tar.gz: fd51741384a2dde87ba463b93e9edf622ea1821b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
253
|
-
|
252
|
+
def self.not_found_class
|
253
|
+
Fog::Baremetal::OpenStack::NotFound
|
254
254
|
end
|
255
255
|
|
256
|
-
|
257
|
-
|
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[:
|
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
|
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.
|
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-
|
11
|
+
date: 2018-09-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: fog-core
|