From: Thomas Lamprecht Date: Thu, 23 Nov 2023 11:11:38 +0000 (+0100) Subject: dhcp dnsmasq: suppress warning too if dhcp is not configured X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=0558f26d2ea3a7a4caf6d4ea3bb48df00361cb11;p=matthieu%2Fpve-network.git dhcp dnsmasq: suppress warning too if dhcp is not configured Signed-off-by: Thomas Lamprecht --- diff --git a/src/PVE/Network/SDN/Dhcp/Dnsmasq.pm b/src/PVE/Network/SDN/Dhcp/Dnsmasq.pm index 6dd9d9e..e65e973 100644 --- a/src/PVE/Network/SDN/Dhcp/Dnsmasq.pm +++ b/src/PVE/Network/SDN/Dhcp/Dnsmasq.pm @@ -26,8 +26,8 @@ my sub assert_dnsmasq_installed { my $bin_path = "/usr/sbin/dnsmasq"; if (!-e $bin_path) { - log_warn("please install the 'dnsmasq' package in order to use the DHCP feature!"); return if $noerr; # just ignore, e.g., in case zone doesn't use DHCP at all + log_warn("please install the 'dnsmasq' package in order to use the DHCP feature!"); die "cannot reload with missing 'dnsmasq' package\n"; } return 1;