From 0558f26d2ea3a7a4caf6d4ea3bb48df00361cb11 Mon Sep 17 00:00:00 2001 From: Thomas Lamprecht Date: Thu, 23 Nov 2023 12:11:38 +0100 Subject: [PATCH] dhcp dnsmasq: suppress warning too if dhcp is not configured Signed-off-by: Thomas Lamprecht --- src/PVE/Network/SDN/Dhcp/Dnsmasq.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.39.5