lib/routes/main.rb in gaptool-server-0.5.10 vs lib/routes/main.rb in gaptool-server-0.5.11

- old
+ new

@@ -108,9 +108,13 @@ @run_list.unshift(init_recipe) end data['chef_runlist'] = @run_list.to_json end + if @run_list.length == 1 && @run_list[0] == init_recipe + data.delete('chef_runlist') + end + data.merge!("capacity" => $redis.hget('capacity', data['itype'])) data.merge!("hostname" => hostname) data.merge!("apps" => @apps.to_json) data.merge!("instance" => @instance.id) data['terminate'] = host_data['terminate'].nil? ? 'true' : host_data['terminate']