From a3c114c0ef16c12fb693c0664f8744d9f3f1c087 Mon Sep 17 00:00:00 2001 From: Thomas Lamprecht Date: Wed, 22 Nov 2023 19:49:04 +0100 Subject: [PATCH] controller: evpn reload: use log_warn to cause a task-warning Signed-off-by: Thomas Lamprecht --- src/PVE/Network/SDN/Controllers/EvpnPlugin.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/PVE/Network/SDN/Controllers/EvpnPlugin.pm b/src/PVE/Network/SDN/Controllers/EvpnPlugin.pm index 3ac7d7e..f320139 100644 --- a/src/PVE/Network/SDN/Controllers/EvpnPlugin.pm +++ b/src/PVE/Network/SDN/Controllers/EvpnPlugin.pm @@ -6,6 +6,7 @@ use warnings; use PVE::INotify; use PVE::JSONSchema qw(get_standard_option); use PVE::Tools qw(run_command file_set_contents file_get_contents); +use PVE::RESTEnvironment qw(log_warn); use PVE::Network::SDN::Controllers::Plugin; use PVE::Network::SDN::Zones::Plugin; @@ -578,7 +579,7 @@ sub reload_controller { my $bin_path = "/usr/lib/frr/frr-reload.py"; if (!-e $bin_path) { - warn "missing $bin_path. Please install frr-pythontools package"; + log_warn("missing $bin_path. Please install frr-pythontools package"); return; }