From 09195ffeb2dfbb96524aacb47cd5963f6e25fe8c Mon Sep 17 00:00:00 2001 From: Doug Goldstein Date: Wed, 26 Jun 2024 12:39:06 -0500 Subject: [PATCH] fix: don't make bad dnsmasq config for dhcp-proxy If the dhcp-proxy value is going to be empty, don't template it out. --- containers/dnsmasq/dnsmasq.conf.j2 | 2 ++ 1 file changed, 2 insertions(+) diff --git a/containers/dnsmasq/dnsmasq.conf.j2 b/containers/dnsmasq/dnsmasq.conf.j2 index 16c4bb581..223afefdd 100644 --- a/containers/dnsmasq/dnsmasq.conf.j2 +++ b/containers/dnsmasq/dnsmasq.conf.j2 @@ -83,7 +83,9 @@ dhcp-authoritative # pool {{ name }} {{ dhcp_config(name) }} {% endfor %} +{% if dhcp_proxy_list | length > 0 %} dhcp-proxy={{ dhcp_proxy_list|join(',') }} +{% endif %} dhcp-allowed-srvids={{ dhcp_allowed_srvids_list|join(',') }} enable-tftp tftp-no-fail