Fix default mode in haproxy_single_service_split

haproxy_single_service_listen (the default template) was already fine.

Closes-Bug: #1896591
TrivialFix

Change-Id: Id68fe19ea87565aa36fb74f2a2ca66cb951169f6
This commit is contained in:
Radosław Piliszek 2020-09-22 11:58:38 +02:00
parent cccfa8f378
commit a45ef7ccaa
2 changed files with 7 additions and 1 deletions

View File

@ -128,7 +128,7 @@ backend {{ service_name }}_back
{{ frontend_macro(haproxy_name, haproxy_service.port, mode, external,
frontend_http_extra, frontend_tcp_extra) }}
{# Redirect (to https) is a special case, as it does not include a backend #}
{% if haproxy_service.mode != 'redirect' %}
{% if mode != 'redirect' %}
{{ backend_macro(haproxy_name, listen_port, mode, host_group,
custom_member_list, backend_http_extra, backend_tcp_extra,
auth_user, auth_pass, tls_backend) }}

View File

@ -0,0 +1,6 @@
---
fixes:
- |
Fixes ``haproxy_single_service_split`` template to work with default for
``mode`` (``http``).
`LP#1896591 <https://launchpad.net/bugs/1896591>`__