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 -%>