5
0
mirror of git://git.proxmox.com/git/pve-access-control.git synced 2025-01-20 14:03:43 +03:00

tfa: upgrade check: be less strict about version format

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

View File

@ -1779,7 +1779,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;
}