[pve-devel] [PATCH pve-network 5/7] api2: fix vnet status

Alexandre Derumier aderumier at odiso.com
Mon Feb 10 17:26:08 CET 2020


---
 PVE/API2/Network/SDN/Zones/Content.pm | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/PVE/API2/Network/SDN/Zones/Content.pm b/PVE/API2/Network/SDN/Zones/Content.pm
index cb738b5..fb76133 100644
--- a/PVE/API2/Network/SDN/Zones/Content.pm
+++ b/PVE/API2/Network/SDN/Zones/Content.pm
@@ -75,7 +75,7 @@ __PACKAGE__->register_method ({
 	    if ($vnet_status->{$id}->{zone} eq $zoneid) {
 		my $item->{vnet} = $id;
 		$item->{status} = $vnet_status->{$id}->{'status'};
-		$item->{status} = $vnet_status->{$id}->{'statusmsg'};
+		$item->{statusmsg} = $vnet_status->{$id}->{'statusmsg'};
 		push @$res,$item;
 	    }
         }
-- 
2.20.1




More information about the pve-devel mailing list