[pve-devel] [PATCH pve-network 01/15] sdn: pending_config: initialize empty pending key
Alexandre Derumier
aderumier at odiso.com
Tue Jan 5 10:35:22 CET 2021
Signed-off-by: Alexandre Derumier <aderumier at odiso.com>
---
PVE/Network/SDN.pm | 2 ++
1 file changed, 2 insertions(+)
diff --git a/PVE/Network/SDN.pm b/PVE/Network/SDN.pm
index 256a7c8..a20233a 100644
--- a/PVE/Network/SDN.pm
+++ b/PVE/Network/SDN.pm
@@ -104,6 +104,7 @@ sub pending_config {
$pending->{$id}->{state} = "changed";
}
}
+ $pending->{$id}->{"pending"} = {} if $pending->{$id}->{state} && !defined($pending->{$id}->{"pending"});
}
foreach my $id (sort keys %{$config_objects}) {
@@ -124,6 +125,7 @@ sub pending_config {
$pending->{$id}->{state} = "changed";
}
}
+ $pending->{$id}->{"pending"} = {} if $pending->{$id}->{state} && !defined($pending->{$id}->{"pending"});
}
return {ids => $pending};
--
2.20.1
More information about the pve-devel
mailing list