From 4a7f3920d94e5bf0426068474afd3714f6b4a283 Mon Sep 17 00:00:00 2001 From: Doug Goldstein Date: Tue, 24 Sep 2024 11:23:04 -0500 Subject: [PATCH] fix: do not delete whitespace between dnsmasq options This minus sign causes us to delete all whitespace prior which creates all the for loop items on the same line creating an invalid config. They need to be on their own line. --- containers/dnsmasq/dnsmasq/dnsmasq.conf.j2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/containers/dnsmasq/dnsmasq/dnsmasq.conf.j2 b/containers/dnsmasq/dnsmasq/dnsmasq.conf.j2 index 00c03d19e..68d7fe419 100644 --- a/containers/dnsmasq/dnsmasq/dnsmasq.conf.j2 +++ b/containers/dnsmasq/dnsmasq/dnsmasq.conf.j2 @@ -67,7 +67,7 @@ shared-network={{ env.PROVISIONER_INTERFACE | default("eth0") }},{{ env[dhcp_pro {% set option_prefix = 'option:' -%} {% endif -%} dhcp-option={{ tag }}{{ option_prefix }}{{ option|replace('_', '-')|lower }},{{ value }} -{%- endfor %} +{% endfor %} {% if env[dhcp_allowed] is defined and env[dhcp_allowed] %} {{ dhcp_allowed_srvids_list.append(env[dhcp_allowed]) or '' }} {%- endif %}