]> git.proxmox.com Git - pve-manager.git/commitdiff
5to6: fixup: really set $total_votes to 0 if not defined
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Thu, 4 Jul 2019 12:20:41 +0000 (14:20 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Thu, 4 Jul 2019 13:22:13 +0000 (15:22 +0200)
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
(cherry picked from commit 176116b22ffae4993f5b3e25977ea08c6aca4dc9)
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
PVE/CLI/pve5to6.pm

index 547b2c517ec5a674d04611e5516a47ad107bbe1f..004db1b33d253ff30b70d46282103412d4eb3bd8 100644 (file)
@@ -294,7 +294,7 @@ sub check_cluster_corosync {
     }
     if (!defined($total_votes)) {
        log_fail("unable to get expected number of votes, setting to 0.");
-       $expected_votes = 0;
+       $total_votes = 0;
     }
 
     my $cfs_nodelist = PVE::Cluster::get_clinfo()->{nodelist};