]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/nodejs/providers/package.rb
Log SSL protocol and cipher details for web requests
[chef.git] / cookbooks / nodejs / providers / package.rb
index 5e3ca068468a9377f44ca1a0d464b8354cb45edd..3a33040635c06b8cc0dcd642cd4b8bdd16a4bdae 100644 (file)
@@ -27,7 +27,7 @@ def load_current_resource
 
   @current_resource = Chef::Resource::NodejsPackage.new(new_resource.name)
   @current_resource.package_name(new_resource.package_name)
 
   @current_resource = Chef::Resource::NodejsPackage.new(new_resource.name)
   @current_resource.package_name(new_resource.package_name)
-  if package = @packages[@current_resource.package_name]
+  if (package = @packages[@current_resource.package_name])
     @current_resource.version(package["version"])
   end
   @current_resource
     @current_resource.version(package["version"])
   end
   @current_resource