summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
Diffstat (limited to 'templates')
-rw-r--r--templates/haproxy_balancermember.erb5
1 files changed, 4 insertions, 1 deletions
diff --git a/templates/haproxy_balancermember.erb b/templates/haproxy_balancermember.erb
index b739e11..f85137d 100644
--- a/templates/haproxy_balancermember.erb
+++ b/templates/haproxy_balancermember.erb
@@ -1 +1,4 @@
- server <%= server_name %> <%= balancer_ip %>:<%= balancer_port %> <% balancermember_options.each do |item| %> <%= item %> <% end %>
+ server <%= server_name %> <%= balancer_ip %>:<%= balancer_port %> <%
+ items = balancermember_options
+ items = [items] unless balancermember_options.instance_of? Array
+ items.each do |item| %> <%= item %><% end %>