5to6: fixup: really set $total_votes to 0 if not defined

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
Thomas Lamprecht 2019-07-04 14:20:41 +02:00
parent 6ab8927e85
commit 23a60185fb

View 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};