fog-openstack 1.0.9 → 1.0.10

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
  SHA256:
3
- metadata.gz: 530da777fdef44b8a3c8fa5a17af871552a076cffe5d02ceb62c7111398e9f96
4
- data.tar.gz: 347b19093860b01a5a55bf449b132ace59f7587c273aa011a7a6b7f933c45d3f
3
+ metadata.gz: 9a8e252a230bee20d269d2d792ab05b8f99bae13717a9540cf2686d5fff8b5cd
4
+ data.tar.gz: aca5c5940ba619c6a95ac6ca961d0497f0f363e27bc487683b69f0051b17d2ed
5
5
  SHA512:
6
- metadata.gz: 20cf27a82b8c3cd6383a502b4ca14dbf69939a654ae70d43172203be191bb9b3d1d5f89a51bfb7a3d30055cd0cf87b1ecfd2084ed8808ce92446f76d1da722b7
7
- data.tar.gz: 7206050c3ae79424adec760d7d796117784c24124d9049268b9d3ab9dd19a19529d6dc6f25f87b8d5513057086023861644c931e90bd1a5ef2ade4ef0a72ac0b
6
+ metadata.gz: 178b1d9f8c71816bb0bfb0880d29ce5a05a2de5fad03a55b2a14e35e70d66217cc2b98a83e781f6c9bbd66810396d470570a191f140f631fb8b555e92de2d269
7
+ data.tar.gz: 2b5a5f10dcd085c61251dac698044b5a38f7f8ed7f2b35a3e59ebd3d4d590015f1884ecbbe5fb0d35603797cd8630de3b5e6d6314e1c4d2757338c825dd1dd78
@@ -42,15 +42,19 @@ module Fog
42
42
  def authenticate(creds, options)
43
43
  connection = Fog::Core::Connection.new(creds[:uri].to_s, false, options)
44
44
 
45
- request = {
45
+ headers = {
46
+ 'Accept' => 'application/json',
47
+ 'Content-Type' => 'application/json'
48
+ }
49
+ request_options = {
46
50
  :expects => [200, 201],
47
- :headers => {'Content-Type' => 'application/json'},
51
+ :headers => headers,
48
52
  :body => Fog::JSON.encode(creds[:data]),
49
53
  :method => 'POST',
50
54
  :path => creds[:uri].path + prefix_path(creds[:uri]) + path
51
55
  }
52
56
 
53
- connection.request(request)
57
+ connection.request(request_options)
54
58
  end
55
59
 
56
60
  def expired?
@@ -1,5 +1,5 @@
1
1
  module Fog
2
2
  module OpenStack
3
- VERSION = '1.0.9'.freeze
3
+ VERSION = '1.0.10'.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: 1.0.9
4
+ version: 1.0.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matt Darby
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2019-08-30 00:00:00.000000000 Z
11
+ date: 2019-09-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: fog-core