followup code cleanup
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Wed, 8 May 2019 15:36:14 +0000 (15:36 +0000)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Wed, 8 May 2019 15:36:14 +0000 (15:36 +0000)
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
src/PVE/INotify.pm

index 11b6728..b660041 100644 (file)
@@ -1124,9 +1124,8 @@ sub __read_etc_network_interfaces {
        if ($d->{address6}) {
            $d->{cidr6} = $d->{address6};
            if ($d->{netmask6}) {
-               $d->{cidr6} .= "/" . $d->{netmask6} if $d->{netmask6};
+               $d->{cidr6} .= "/" . $d->{netmask6};
            } elsif ($d->{address6} =~ m!^(.*)/(\d+)$!) {
-               $d->{cidr6} = $d->{address6};
                $d->{address6} = $1;
                $d->{netmask6} = $2;
            }