Skip to content

Commit 6afbba5

Browse files
author
Miguel Medinilla
committed
Guard template rendering against native None output
1 parent d2cf3c2 commit 6afbba5

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

templates/haproxy.cfg.j2

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ listen {{ listener.name }}
5858
{% for directive in listener.lines | default([]) %}
5959
{{ directive }}
6060
{% endfor %}
61-
{{ render_section_templates(listener) }}
61+
{{ render_section_templates(listener) | default('') }}
6262

6363
{% endfor %}
6464
{% for frontend in haproxy_decision_frontends | default([]) %}
@@ -80,7 +80,7 @@ frontend {{ frontend.name }}
8080
{% endif %}
8181
{% endfor %}
8282
{% endif %}
83-
{{ render_section_templates(frontend) }}
83+
{{ render_section_templates(frontend) | default('') }}
8484

8585
{% endfor %}
8686
{% for backend in haproxy_decision_backends | default([]) %}
@@ -101,7 +101,7 @@ backend {{ backend.name }}
101101
{% endif %}
102102
{% endfor %}
103103
{% endif %}
104-
{{ render_section_templates(backend) }}
104+
{{ render_section_templates(backend) | default('') }}
105105

106106
{% endfor %}
107107
{{ haproxy_decision_extra_config }}

0 commit comments

Comments
 (0)