Skip to content

Commit

Permalink
Consistency change
Browse files Browse the repository at this point in the history
  • Loading branch information
tersmitten committed Oct 20, 2017
1 parent b9fd4df commit c3e0f42
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 9 deletions.
4 changes: 1 addition & 3 deletions templates/etc/haproxy/backend.cfg.j2
Original file line number Diff line number Diff line change
Expand Up @@ -88,10 +88,8 @@ backend {{ backend.name }}

{% endfor %}

{% if backend.errorfile is defined %}
{% for errorfile in backend.errorfile %}
{% for errorfile in backend.errorfile | default([]) %}
errorfile {{ errorfile.code }} {{ errorfile.file }}
{% endfor %}
{% endif %}

{% endfor %}
4 changes: 1 addition & 3 deletions templates/etc/haproxy/frontend.cfg.j2
Original file line number Diff line number Diff line change
Expand Up @@ -88,10 +88,8 @@ frontend {{ frontend.name }}

default_backend {{ frontend.default_backend }}

{% if frontend.errorfile is defined %}
{% for errorfile in frontend.errorfile %}
{% for errorfile in frontend.errorfile | default([]) %}
errorfile {{ errorfile.code }} {{ errorfile.file }}
{% endfor %}
{% endif %}

{% endfor %}
4 changes: 1 addition & 3 deletions templates/etc/haproxy/listen.cfg.j2
Original file line number Diff line number Diff line change
Expand Up @@ -118,10 +118,8 @@ listen {{ listen.name }}

{% endfor %}

{% if listen.errorfile is defined %}
{% for errorfile in listen.errorfile %}
{% for errorfile in listen.errorfile | default([]) %}
errorfile {{ errorfile.code }} {{ errorfile.file }}
{% endfor %}
{% endif %}

{% endfor %}

0 comments on commit c3e0f42

Please sign in to comment.