X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/e5f294d3dc676675b2803915571c28337468c3b3..9b2abddf2004a1424175886a6e853304717cb0fe:/cookbooks/python/resources/package.rb?ds=inline diff --git a/cookbooks/python/resources/package.rb b/cookbooks/python/resources/package.rb index e2cab899a..7dddd17af 100644 --- a/cookbooks/python/resources/package.rb +++ b/cookbooks/python/resources/package.rb @@ -24,7 +24,7 @@ property :version, :kind_of => String property :python_version, :kind_of => String action :install do - if version.nil? + if new_resource.version.nil? execute "pip-install-#{new_resource.package_name}" do command "#{pip_command} install #{new_resource.package_name}" not_if "#{pip_command} show #{new_resource.package_name}"