diff options
author | Thom May <thom@may.lt> | 2016-12-07 09:31:39 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-12-07 09:31:39 +0000 |
commit | a143eefd438fa4d1325728f34142746c99319146 (patch) | |
tree | 4edcc11c9547f9cb5b1e7d3004ad57e1b78d0583 /lib/chef/cookbook | |
parent | c49c6c9055d15ed37a5db0bbc778a238d0fbcd16 (diff) | |
parent | e133beb44b2cb9fe654531b567541456598c65a4 (diff) | |
download | chef-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.rb | 4 |
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 |