From 930fff2596c365eb5f8ccac89f22ae8074443644 Mon Sep 17 00:00:00 2001 From: Mark van Driel Date: Tue, 21 Apr 2020 13:53:51 +0200 Subject: [PATCH] Fix log-format in templates --- templates/etc/haproxy/defaults.cfg.j2 | 2 +- templates/etc/haproxy/frontend.cfg.j2 | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/templates/etc/haproxy/defaults.cfg.j2 b/templates/etc/haproxy/defaults.cfg.j2 index 8abe4df5..1a9930e0 100644 --- a/templates/etc/haproxy/defaults.cfg.j2 +++ b/templates/etc/haproxy/defaults.cfg.j2 @@ -3,7 +3,7 @@ {% endif %} {% if haproxy_defaults_logformat is defined %} - log-format {{ haproxy_defaults_logformat }} + log-format "{{ haproxy_defaults_logformat }}" {% endif %} {% if haproxy_defaults_mode != false %} diff --git a/templates/etc/haproxy/frontend.cfg.j2 b/templates/etc/haproxy/frontend.cfg.j2 index c6d51063..c8e53655 100644 --- a/templates/etc/haproxy/frontend.cfg.j2 +++ b/templates/etc/haproxy/frontend.cfg.j2 @@ -32,7 +32,7 @@ frontend {{ frontend.name }} {% endfor %} {% if frontend.logformat is defined %} - log-format {{ frontend.logformat }} + log-format "{{ frontend.logformat }}" {% endif %} {% if frontend.no_log | default(false) == true %}