summaryrefslogtreecommitdiff
path: root/lib/chef/cookbook
diff options
context:
space:
mode:
authorThom May <thom@may.lt>2016-12-07 09:31:39 +0000
committerGitHub <noreply@github.com>2016-12-07 09:31:39 +0000
commita143eefd438fa4d1325728f34142746c99319146 (patch)
tree4edcc11c9547f9cb5b1e7d3004ad57e1b78d0583 /lib/chef/cookbook
parentc49c6c9055d15ed37a5db0bbc778a238d0fbcd16 (diff)
parente133beb44b2cb9fe654531b567541456598c65a4 (diff)
downloadchef-a143eefd438fa4d1325728f34142746c99319146.tar.gz
Merge pull request #5622 from chef/chef-ad/3888
Knife: cookbook site share doesn't work with some json metadata
Diffstat (limited to 'lib/chef/cookbook')
-rw-r--r--lib/chef/cookbook/metadata.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/chef/cookbook/metadata.rb b/lib/chef/cookbook/metadata.rb
index 02f9831d70..b2f3db9b8e 100644
--- a/lib/chef/cookbook/metadata.rb
+++ b/lib/chef/cookbook/metadata.rb
@@ -641,8 +641,8 @@ class Chef
VERSION_CONSTRAINTS.each do |dependency_type, hash_key|
if dependency_group = o[hash_key]
dependency_group.each do |cb_name, constraints|
- if metadata.respond_to?(method_name)
- metadata.public_send(method_name, cb_name, *Array(constraints))
+ if metadata.respond_to?(dependency_type)
+ metadata.public_send(dependency_type, cb_name, *Array(constraints))
end
end
end