Skip to content

Commit

Permalink
Merge pull request #166 from gini/fix_upstream_prepend
Browse files Browse the repository at this point in the history
Fix upstream_cfg_prepend loop to put every element on a dedicated line
  • Loading branch information
James Fryman committed Oct 25, 2013
2 parents 7c65b80 + b17a8c2 commit 6f87f1c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion templates/conf.d/upstream.erb
Original file line number Diff line number Diff line change
@@ -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 %>
Expand Down

0 comments on commit 6f87f1c

Please sign in to comment.