Skip to content
Snippets Groups Projects
Commit a45ef7cc authored by Radosław Piliszek's avatar Radosław Piliszek
Browse files

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
parent cccfa8f3
No related branches found
No related tags found
No related merge requests found
......@@ -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) }}
......
---
fixes:
- |
Fixes ``haproxy_single_service_split`` template to work with default for
``mode`` (``http``).
`LP#1896591 <https://launchpad.net/bugs/1896591>`__
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment