From cd01a0c093ece3c4a83a62696fa72c71147937e8 Mon Sep 17 00:00:00 2001 From: Thomas Lamprecht Date: Wed, 3 Jun 2020 11:35:37 +0200 Subject: [PATCH] generate_etc_network_config: avoid warn line info Signed-off-by: Thomas Lamprecht --- PVE/Network/SDN/Zones.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/PVE/Network/SDN/Zones.pm b/PVE/Network/SDN/Zones.pm index 552b334..c16bf94 100644 --- a/PVE/Network/SDN/Zones.pm +++ b/PVE/Network/SDN/Zones.pm @@ -112,8 +112,8 @@ sub generate_etc_network_config { eval { $plugin->generate_sdn_config($plugin_config, $zone, $id, $vnet, $controller, $interfaces_config, $config); }; - if($@) { - warn "zone $zone : vnet $id : $@"; + if (my $err = $@) { + warn "zone $zone : vnet $id : $err\n"; next; } } -- 2.39.2