X-Git-Url: https://git.proxmox.com/?p=pve-common.git;a=blobdiff_plain;f=src%2FPVE%2FINotify.pm;h=7fc6978cfdb4beeaa555d9aa89579c53e31dc73f;hp=630e62f2f1afe3812d625a4b4c3f4abb68f162a3;hb=cb07ff78cab6f6994cc5b6978e52ed65af8869ec;hpb=78325766900d362d492d37270e2224840a919129 diff --git a/src/PVE/INotify.pm b/src/PVE/INotify.pm index 630e62f..7fc6978 100644 --- a/src/PVE/INotify.pm +++ b/src/PVE/INotify.pm @@ -827,7 +827,7 @@ sub __read_etc_network_interfaces { my $f = { method => $3 }; # by family, merged to $d with a $suffix (my $suffix = $family) =~ s/^inet//; - my $d = $ifaces->{$i}; + my $d = $ifaces->{$i} ||= {}; $d->{priority} = $priority++ if !$d->{priority}; push @{$d->{families}}, $family;