From 1fe20238455166060ff1aae0845f481a2c8ae0c7 Mon Sep 17 00:00:00 2001 From: Arne Teuke Date: Sun, 30 Dec 2018 17:03:58 +0100 Subject: [PATCH] tests acl template --- templates/haproxy_acl_rule.erb | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/templates/haproxy_acl_rule.erb b/templates/haproxy_acl_rule.erb index b883ce3..16b6ed4 100644 --- a/templates/haproxy_acl_rule.erb +++ b/templates/haproxy_acl_rule.erb @@ -1,4 +1,6 @@ <% if @acl_rule != '' -%> -<% @acl_rule.each.do |acl_rule| %> +<% @acl_rule.each do |acl_rule| -%> acl <%= acl_rule %> -<% end -%> +<% else -%> +# no acl given %> +<% end end -%>