X-Git-Url: https://git.openstreetmap.org/chef.git/blobdiff_plain/07074011fa21aef90a1c7cacb177418aac78739b..7b058886e60a6ee9ac09bc07a3bfd3ed048a40a0:/cookbooks/python/resources/package.rb 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}"