From: Thomas Lamprecht Date: Sat, 11 Jan 2020 15:15:02 +0000 (+0100) Subject: followup code cleanup X-Git-Url: https://git.proxmox.com/?p=pve-common.git;a=commitdiff_plain;h=055f076be5553a9722a9dad483e26eda8c3a7527 followup code cleanup Signed-off-by: Thomas Lamprecht --- 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;