Skip to content

Commit 8a93774

Browse files
author
Nuo Yan
committed
fixed empty runlist shown as recipe[recipe[]] bug
1 parent fe0091a commit 8a93774

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • chef-server-webui/app/controllers

chef-server-webui/app/controllers/nodes.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ def create
6767
@node = Chef::Node.new
6868
@node.name params[:name]
6969
@node.attribute = JSON.parse(params[:attributes])
70-
@node.run_list params[:for_node]
70+
@node.run_list.reset(params[:for_node] ? params[:for_node] : [])
7171
begin
7272
@node.create
7373
rescue Net::HTTPServerException => e

0 commit comments

Comments
 (0)