Browse Source

minor fix for openstack_base lib since new_resource was used in wrong

context
stable/newton
Jan Klare 2 years ago
parent
commit
e22f838e0f
2 changed files with 2 additions and 3 deletions
  1. 1
    2
      libraries/openstack_base.rb
  2. 1
    1
      metadata.rb

+ 1
- 2
libraries/openstack_base.rb View File

@@ -18,8 +18,7 @@ module OpenstackclientCookbook
18 18
   class OpenstackBase < Chef::Resource
19 19
     require 'fog/openstack'
20 20
     def connection
21
-      @connection_cache ||= Fog::Identity::OpenStack
22
-                            .new(new_resource.connection_params)
21
+      @connection_cache ||= Fog::Identity::OpenStack.new(connection_params)
23 22
     end
24 23
   end
25 24
 end

+ 1
- 1
metadata.rb View File

@@ -21,6 +21,6 @@ license 'Apache v2.0'
21 21
 description 'Installs the fog-openstack gem and offers LWRPs to use it'
22 22
 issues_url 'https://github.com/cloudbau/cookbook-openstackclient/issues'
23 23
 source_url 'https://github.com/cloudbau/cookbook-openstackclient'
24
-version '0.1.0'
24
+version '0.1.1'
25 25
 
26 26
 gem 'fog-openstack'

Loading…
Cancel
Save