5
0
mirror of git://git.proxmox.com/git/pve-access-control.git synced 2025-01-06 13:17:54 +03:00

tfa: cope with native versions in cluster version check

Reported-by: Friedrich Weber <f.weber@proxmox.com>
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
Thomas Lamprecht 2023-06-09 16:06:43 +02:00
parent 6004f25eda
commit 4a7b5956ec

View File

@ -1918,7 +1918,7 @@ sub assert_new_tfa_config_available() {
}
$info = from_json($info);
my $ver = $info->{version};
if ($ver !~ /^(\d+\.\d+)-(\d+)/) {
if ($ver !~ /^(\d+\.\d+)(?:[.-](\d+))?/) {
$old .= " cluster node '$node' provided an invalid version string: '$ver'\n";
next;
}