Fix upstream_cfg_prepend loop to put every element on a dedicated line

This commit is contained in:
Daniel Kerwin 2013-10-22 23:19:34 +02:00
parent 59cf9148c2
commit b17a8c2952

View file

@ -1,5 +1,5 @@
upstream <%= @name %> {
<% if @upstream_cfg_prepend -%><% upstream_cfg_prepend.sort_by{|k,v| k}.each do |key,value| -%>
<% if @upstream_cfg_prepend -%><% upstream_cfg_prepend.sort_by{|k,v| k}.each do |key,value| %>
<%= key %> <%= value %>;<% end -%><% end -%>
<% @members.each do |i| %>
server <%= i %>;<% end %>