mirror of
git://git.proxmox.com/git/pve-ha-manager.git
synced 2025-01-04 09:17:59 +03:00
fix variable name typo
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
parent
066fd01670
commit
1280368d31
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user