We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f560b3d commit 9d5dea9Copy full SHA for 9d5dea9
1 file changed
chef-server-api/app/controllers/nodes.rb
@@ -157,8 +157,7 @@ def cookbooks_for_node(all_cookbooks)
157
items = @node.run_list.expand('couchdb').run_list_items
158
159
# walk run list and accumulate included dependencies
160
- items.inject({}) do |included_cookbooks, rli|
161
- next unless rli.recipe?
+ items.select{|i| i.recipe?}.inject({}) do |included_cookbooks, rli|
162
expand_cookbook_deps(included_cookbooks, all_cookbooks, rli)
163
included_cookbooks
164
end
0 commit comments