]> git.puffer.fish Git - matthieu/pve-network.git/commitdiff
zones: fix status
authorAlexandre Derumier <aderumier@odiso.com>
Mon, 12 Jun 2023 17:43:46 +0000 (19:43 +0200)
committerFabian Grünbichler <f.gruenbichler@proxmox.com>
Tue, 13 Jun 2023 09:41:50 +0000 (11:41 +0200)
Vnets were wrongly displayed in the main tree because of this,
and error was not set on zone

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
src/PVE/Network/SDN/Zones.pm

index f8e40b1f070db133eca37371156714943ad90def..7d70e497998a699c14710f3ded15762b44985336 100644 (file)
@@ -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';
        }
     }