]> git.proxmox.com Git - pve-common.git/commitdiff
followup code cleanup
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Sat, 11 Jan 2020 15:15:02 +0000 (16:15 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Sat, 11 Jan 2020 15:15:02 +0000 (16:15 +0100)
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
src/PVE/INotify.pm

index a0712f7e36b1f32a93a3538eae184b895d2d8eb9..2aa70707cbdaaa0ff5a2d7f90856623024146399 100644 (file)
@@ -1535,11 +1535,10 @@ sub __write_etc_network_interfaces {
            foreach my $p (split (/\s+/, $d->{bridge_ports})) {
                $p =~ s/\.\d+$//;
                my $n = $ifaces->{$p};
            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') ||
                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;
 
                &$check_mtu($ifaces, $iface, $p);
                $bridgeports->{$p} = $iface;