From b17a8c2952ed4866f8c90811fbcd1804e63b4d6b Mon Sep 17 00:00:00 2001 From: Daniel Kerwin Date: Tue, 22 Oct 2013 23:19:34 +0200 Subject: [PATCH] Fix upstream_cfg_prepend loop to put every element on a dedicated line --- templates/conf.d/upstream.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/conf.d/upstream.erb b/templates/conf.d/upstream.erb index ab3e06d..fb0d7e8 100644 --- a/templates/conf.d/upstream.erb +++ b/templates/conf.d/upstream.erb @@ -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 %>