summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhil Dibowitz <phil@ipom.com>2015-01-15 18:03:14 -0800
committerPhil Dibowitz <phil@ipom.com>2015-02-03 19:32:36 -0800
commit44f9c8e19e88b4262801f9d470cf3e930411791a (patch)
tree04177767597cb1b10e7570616bb42d65a3f1e4c3
parentf494042dc2f2badb232c207d43a745ea87c61ea7 (diff)
downloadchef-44f9c8e19e88b4262801f9d470cf3e930411791a.tar.gz
get_source_from_pkg should check package_name for array, not name
-rw-r--r--lib/chef/mixin/get_source_from_package.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/chef/mixin/get_source_from_package.rb b/lib/chef/mixin/get_source_from_package.rb
index fbf856079a..2ed251854a 100644
--- a/lib/chef/mixin/get_source_from_package.rb
+++ b/lib/chef/mixin/get_source_from_package.rb
@@ -29,7 +29,7 @@ class Chef
module GetSourceFromPackage
def initialize(new_resource, run_context)
super
- return if new_resource.name.is_a?(Array)
+ return if new_resource.package_name.is_a?(Array)
# if we're passed something that looks like a filesystem path, with no source, use it
# - require at least one '/' in the path to avoid gem_package "foo" breaking if a file named 'foo' exists in the cwd
if new_resource.source.nil? && new_resource.package_name.match(/#{::File::SEPARATOR}/) && ::File.exists?(new_resource.package_name)