fog-openstack 1.0.9 → 1.0.10
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 +4 -4
- data/lib/fog/openstack/auth/token.rb +7 -3
- data/lib/fog/openstack/version.rb +1 -1
- metadata +2 -2
    
        checksums.yaml
    CHANGED
    
    | @@ -1,7 +1,7 @@ | |
| 1 1 | 
             
            ---
         | 
| 2 2 | 
             
            SHA256:
         | 
| 3 | 
            -
              metadata.gz:  | 
| 4 | 
            -
              data.tar.gz:  | 
| 3 | 
            +
              metadata.gz: 9a8e252a230bee20d269d2d792ab05b8f99bae13717a9540cf2686d5fff8b5cd
         | 
| 4 | 
            +
              data.tar.gz: aca5c5940ba619c6a95ac6ca961d0497f0f363e27bc487683b69f0051b17d2ed
         | 
| 5 5 | 
             
            SHA512:
         | 
| 6 | 
            -
              metadata.gz:  | 
| 7 | 
            -
              data.tar.gz:  | 
| 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 | 
            -
                       | 
| 45 | 
            +
                      headers = {
         | 
| 46 | 
            +
                        'Accept'       => 'application/json',
         | 
| 47 | 
            +
                        'Content-Type' => 'application/json'
         | 
| 48 | 
            +
                      }
         | 
| 49 | 
            +
                      request_options = {
         | 
| 46 50 | 
             
                        :expects => [200, 201],
         | 
| 47 | 
            -
                        :headers =>  | 
| 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( | 
| 57 | 
            +
                      connection.request(request_options)
         | 
| 54 58 | 
             
                    end
         | 
| 55 59 |  | 
| 56 60 | 
             
                    def expired?
         | 
    
        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. | 
| 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- | 
| 11 | 
            +
            date: 2019-09-18 00:00:00.000000000 Z
         | 
| 12 12 | 
             
            dependencies:
         | 
| 13 13 | 
             
            - !ruby/object:Gem::Dependency
         | 
| 14 14 | 
             
              name: fog-core
         |