]> git.proxmox.com Git - pve-ha-manager.git/commitdiff
fix variable name typo
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Fri, 22 Jul 2022 05:25:02 +0000 (07:25 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Fri, 22 Jul 2022 05:25:02 +0000 (07:25 +0200)
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
src/PVE/HA/Manager.pm

index 6b5535f41b167efa09fccb29dfdb6c7182bf60c4..aefb482ea0b030954c277d63de8a23afa3617c34 100644 (file)
@@ -124,19 +124,19 @@ sub select_service_node {
     } keys %{$pri_groups->{$top_pri}};
 
     my $found;
-    my $found_maintenace_fallback;
+    my $found_maintenance_fallback;
     for (my $i = scalar(@nodes) - 1; $i >= 0; $i--) {
        my $node = $nodes[$i];
        if ($node eq $current_node) {
            $found = $i;
        }
        if (defined($maintenance_fallback) && $node eq $maintenance_fallback) {
-           $found_maintenace_fallback = $i;
+           $found_maintenance_fallback = $i;
        }
     }
 
-    if (defined($found_maintenace_fallback)) {
-       return $nodes[$found_maintenace_fallback];
+    if (defined($found_maintenance_fallback)) {
+       return $nodes[$found_maintenance_fallback];
     }
 
     if ($try_next) {