From 23a927f579890e2da91618563c45fc116a589c37 Mon Sep 17 00:00:00 2001 From: Mark Pimentel Date: Fri, 7 Mar 2014 11:50:26 -0500 Subject: [PATCH] Fix for issue #119 --- providers/package.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/providers/package.rb b/providers/package.rb index 9563ee2..0a5e429 100644 --- a/providers/package.rb +++ b/providers/package.rb @@ -36,7 +36,7 @@ def load_current_resource else sha = Digest::SHA1.hexdigest new_resource.location @extension = new_resource.location.match(/[:\.]([0-9a-z]+)$/i)[1] - @file_name = "#{new_resource.name}-#{sha}.#{ext}" + @file_name = "#{new_resource.name}-#{sha}.#{@extension}" end @current_resource = Chef::Resource::ArtifactPackage.new(@new_resource.name) @current_resource