From 18bcb0f2ebd7b8c5852556ebcedc1f430103127d Mon Sep 17 00:00:00 2001 From: Dmitriy Rabotyagov Date: Fri, 12 Nov 2021 12:29:57 +0200 Subject: [PATCH] Fix inconsistency in haproxy_frontend_raw naming We have announced and documented haproxy_frontend_raw variable while in fact introduced haproxy_raw. Since announced variable name better reflects its purpose and it was announced, we rename it to haproxy_frontend_raw in template generation. Change-Id: I7ba9588b599f42dddad395df1a2e18ccfe6b3fe3 (cherry picked from commit afa12fbc974851c0bb736e246d863fb79ec49e1f) --- .../notes/haproxy_frontend_raw-0811d5d445a66b41.yaml | 6 ++++++ templates/service.j2 | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) create mode 100644 releasenotes/notes/haproxy_frontend_raw-0811d5d445a66b41.yaml diff --git a/releasenotes/notes/haproxy_frontend_raw-0811d5d445a66b41.yaml b/releasenotes/notes/haproxy_frontend_raw-0811d5d445a66b41.yaml new file mode 100644 index 0000000..496b8ec --- /dev/null +++ b/releasenotes/notes/haproxy_frontend_raw-0811d5d445a66b41.yaml @@ -0,0 +1,6 @@ +--- +fixes: + - | + Fixed inconsistency in ``haproxy_frontend_raw`` key naming between + documentation and service template. Previously, template generation + was expecting ``haproxy_raw`` instead of the ``haproxy_frontend_raw``. diff --git a/templates/service.j2 b/templates/service.j2 index 27578af..e290403 100644 --- a/templates/service.j2 +++ b/templates/service.j2 @@ -71,7 +71,7 @@ frontend {{ item.service.haproxy_service_name }}-front-{{ loop.index }} {% if not item.service.haproxy_frontend_only | default(false) %} default_backend {{ item.service.haproxy_service_name }}-back {% endif %} -{% for entry in item.service.haproxy_raw|default([]) %} +{% for entry in item.service.haproxy_frontend_raw|default([]) %} {{ entry }} {% endfor %} {% endfor %}