Qualify property names
[chef.git] / cookbooks / python / resources / package.rb
index e2cab899ae5630f909ce6d1798e800a6c3ca123e..7dddd17afdb2caefef201557788acfc4c4089939 100644 (file)
@@ -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}"