diff options
author | Nuo Yan <nuoyan@nuo-yans-macbook-pro.local> | 2009-12-14 11:48:10 -0800 |
---|---|---|
committer | Nuo Yan <nuoyan@nuo-yans-macbook-pro.local> | 2009-12-14 11:48:10 -0800 |
commit | 8a93774f2f8e7d426229f491674d1693f506faa7 (patch) | |
tree | 266cfa4ec56ed0a6fcc1730f4766433e19d29c27 /chef-server-webui | |
parent | fe0091a591880d517b11abaa16b59c2823bd4055 (diff) | |
download | chef-8a93774f2f8e7d426229f491674d1693f506faa7.tar.gz |
fixed empty runlist shown as recipe[recipe[]] bug
Diffstat (limited to 'chef-server-webui')
-rw-r--r-- | chef-server-webui/app/controllers/nodes.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/chef-server-webui/app/controllers/nodes.rb b/chef-server-webui/app/controllers/nodes.rb index 8877bfc1a7..6c25a45a24 100644 --- a/chef-server-webui/app/controllers/nodes.rb +++ b/chef-server-webui/app/controllers/nodes.rb @@ -67,7 +67,7 @@ class ChefServerWebui::Nodes < ChefServerWebui::Application @node = Chef::Node.new @node.name params[:name] @node.attribute = JSON.parse(params[:attributes]) - @node.run_list params[:for_node] + @node.run_list.reset(params[:for_node] ? params[:for_node] : []) begin @node.create rescue Net::HTTPServerException => e |