]> git.proxmox.com Git - pve-network.git/commitdiff
generate_etc_network_config: avoid warn line info
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Wed, 3 Jun 2020 09:35:37 +0000 (11:35 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Wed, 3 Jun 2020 09:35:37 +0000 (11:35 +0200)
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
PVE/Network/SDN/Zones.pm

index 552b334bba9249c8f6dc963e99cd3863f980992f..c16bf942aff0678d52500ebabb8e2c292eec9439 100644 (file)
@@ -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;
        }
     }