From 4abfac0eec0b86a3d367c22f33ec6dc7c2b570b8 Mon Sep 17 00:00:00 2001 From: Nick Liu Date: Fri, 20 Jan 2017 07:42:33 -0600 Subject: [PATCH] Fixed line break issue if listens.extra is a list --- haproxy/templates/haproxy.jinja | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/haproxy/templates/haproxy.jinja b/haproxy/templates/haproxy.jinja index 646897d..752550b 100644 --- a/haproxy/templates/haproxy.jinja +++ b/haproxy/templates/haproxy.jinja @@ -338,7 +338,8 @@ listen {{ listener.get('name', listener_name) }} {%- if listener.extra is string %} {{ listener.extra }} {%- else %} - {%- for line in listener.extra %} {{ line }} {%- endfor %} + {%- for line in listener.extra %} + {{ line }} {%- endfor %} {%- endif %} {%- endif %} {%- if 'defaultserver' in listener %}