Signed-off-by: Alexandre Derumier <aderum...@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


_______________________________________________
pve-devel mailing list
pve-devel@lists.proxmox.com
https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-devel

Reply via email to