From fd1ae5044edc0f6ab2793aebddd90fcf6dd549ad Mon Sep 17 00:00:00 2001 From: Alexandre Derumier Date: Mon, 12 Jun 2023 19:43:46 +0200 Subject: [PATCH] zones: fix status Vnets were wrongly displayed in the main tree because of this, and error was not set on zone Signed-off-by: Alexandre Derumier --- 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.39.5