File tree Expand file tree Collapse file tree
chef-server-api/app/controllers
chef-server-webui/app/views/nodes Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -109,7 +109,7 @@ def cookbooks_for_node(all_cookbooks)
109109 # expand returns a RunListExpansion which contains recipes, default and override attrs [cb]
110110 # TODO: check for this on the client side before we make the http request [stephen 9/1/10]
111111 begin
112- recipes = @node . run_list . expand ( 'couchdb' ) . recipes . with_versions
112+ recipes = @node . run_list . expand ( 'couchdb' , @node . chef_environment ) . recipes . with_versions
113113 rescue Chef ::Exceptions ::RecipeVersionConflict => e
114114 raise PreconditionFailed , "#Conflict: #{ e . message } "
115115 end
Original file line number Diff line number Diff line change 2828 %td= run_list_item.type
2929 .left.accordion
3030 %h3.head= link_to(" Recipes" , " #" )
31- - recipes = @node.run_list.expand('server').recipes
31+ - recipes = @node.run_list.expand('server', :environment => @node.chef_environment ).recipes
3232 %div
3333 %span.description.form.help
3434 This is the list of recipes, fully expanded, as they will be applied to the node in question.
You can’t perform that action at this time.
0 commit comments