[pve-devel] [PATCH pve-network 1/2] zones: fix status

Alexandre Derumier aderumier at odiso.com
Mon Jun 12 19:43:46 CEST 2023


Vnets were wrongly displayed in the main tree because of this,
and error was not set on zone

Signed-off-by: Alexandre Derumier <aderumier at odiso.com>
---
 src/PVE/Network/SDN/Zones.pm | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/PVE/Network/SDN/Zones.pm b/src/PVE/Network/SDN/Zones.pm
index f8e40b1..7d70e49 100644
--- a/src/PVE/Network/SDN/Zones.pm
+++ b/src/PVE/Network/SDN/Zones.pm
@@ -268,7 +268,7 @@ sub status {
 	if (@{$err_msg} > 0) {
 	    $vnet_status->{$id}->{status} = 'error';
 	    $vnet_status->{$id}->{statusmsg} = join(',', @{$err_msg});
-	    $zone_status->{$id}->{status} = 'error';
+	    $zone_status->{$zone}->{status} = 'error';
 	}
     }
 
-- 
2.30.2





More information about the pve-devel mailing list