tfa: upgrade check: more info in error message(s)

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
Thomas Lamprecht 2021-11-11 12:06:42 +01:00
parent 9f34502077
commit b649f3b40e

View File

@ -1785,11 +1785,11 @@ sub assert_new_tfa_config_available() {
} }
my ($maj, $rel) = ($1, $2); my ($maj, $rel) = ($1, $2);
if (!($maj > 7.0 || ($maj == 7.0 && $rel >= 15))) { if (!($maj > 7.0 || ($maj == 7.0 && $rel >= 15))) {
$old .= "cluster node '$node' is too old\n"; $old .= " cluster node '$node' is too old ($ver < 7.0-15)\n";
next; next;
} }
} }
die $old if length($old); die "cannot update tfa config, following nodes are not up to date:\n$old" if length($old);
} }
sub user_remove_tfa : prototype($) { sub user_remove_tfa : prototype($) {