summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Klare <j.klare@x-ion.de>2016-09-26 17:51:28 +0200
committerGitHub <noreply@github.com>2016-09-26 17:51:28 +0200
commita65b0a39513678435439b00e4625e25de2095f28 (patch)
treeb520842e67a1143370d744b774f41c8db55fd82a
parent7daa8f458b8b42f03a3b12ccc22ae63dfd586ebb (diff)
parente22f838e0fd19ee149283a0d267d2679db269160 (diff)
Merge pull request #1 from cloudbau/fix_openstack_base_lib
minor fix for openstack_base lib since new_resource was used in wrong
-rw-r--r--libraries/openstack_base.rb3
-rw-r--r--metadata.rb2
2 files changed, 2 insertions, 3 deletions
diff --git a/libraries/openstack_base.rb b/libraries/openstack_base.rb
index 569ebd9..7b0803e 100644
--- a/libraries/openstack_base.rb
+++ b/libraries/openstack_base.rb
@@ -18,8 +18,7 @@ module OpenstackclientCookbook
18 class OpenstackBase < Chef::Resource 18 class OpenstackBase < Chef::Resource
19 require 'fog/openstack' 19 require 'fog/openstack'
20 def connection 20 def connection
21 @connection_cache ||= Fog::Identity::OpenStack 21 @connection_cache ||= Fog::Identity::OpenStack.new(connection_params)
22 .new(new_resource.connection_params)
23 end 22 end
24 end 23 end
25end 24end
diff --git a/metadata.rb b/metadata.rb
index 7e4b961..fd55f79 100644
--- a/metadata.rb
+++ b/metadata.rb
@@ -21,6 +21,6 @@ license 'Apache v2.0'
21description 'Installs the fog-openstack gem and offers LWRPs to use it' 21description 'Installs the fog-openstack gem and offers LWRPs to use it'
22issues_url 'https://github.com/cloudbau/cookbook-openstackclient/issues' 22issues_url 'https://github.com/cloudbau/cookbook-openstackclient/issues'
23source_url 'https://github.com/cloudbau/cookbook-openstackclient' 23source_url 'https://github.com/cloudbau/cookbook-openstackclient'
24version '0.1.0' 24version '0.1.1'
25 25
26gem 'fog-openstack' 26gem 'fog-openstack'