From 055f076be5553a9722a9dad483e26eda8c3a7527 Mon Sep 17 00:00:00 2001 From: Thomas Lamprecht Date: Sat, 11 Jan 2020 16:15:02 +0100 Subject: [PATCH] followup code cleanup Signed-off-by: Thomas Lamprecht --- src/PVE/INotify.pm | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/PVE/INotify.pm b/src/PVE/INotify.pm index a0712f7..2aa7070 100644 --- a/src/PVE/INotify.pm +++ b/src/PVE/INotify.pm @@ -1535,11 +1535,10 @@ sub __write_etc_network_interfaces { foreach my $p (split (/\s+/, $d->{bridge_ports})) { $p =~ s/\.\d+$//; my $n = $ifaces->{$p}; - die "bridge '$iface' - unable to find bridge port '$p'\n" - if !$n; + die "bridge '$iface' - unable to find bridge port '$p'\n" if !$n; die "iface $p - ip address can't be set on interface if bridged in $iface\n" if ($n->{method} eq 'static' && $n->{address} ne '0.0.0.0') || - ($n->{method6} eq 'static' && $n->{address} ne "\:\:"); + ($n->{method6} eq 'static' && $n->{address} ne '::'); &$check_mtu($ifaces, $iface, $p); $bridgeports->{$p} = $iface; -- 2.39.2