Merge pull request #1 from cloudbau/fix_openstack_base_lib

minor fix for openstack_base lib since new_resource was used in wrong
This commit is contained in:
Jan Klare 2016-09-26 17:51:28 +02:00 committed by GitHub
commit a65b0a3951
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'