minor fix for openstack_base lib since new_resource was used in wrong

context
This commit is contained in:
Jan Klare 2016-09-26 17:34:56 +02:00
parent 7daa8f458b
commit e22f838e0f
2 changed files with 2 additions and 3 deletions

View File

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

View File

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