]> git.proxmox.com Git - pve-access-control.git/commitdiff
tfa: upgrade check: be less strict about version format
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Thu, 11 Nov 2021 11:05:52 +0000 (12:05 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Thu, 11 Nov 2021 11:05:57 +0000 (12:05 +0100)
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
src/PVE/AccessControl.pm

index f39ac9cbdde6a483421a1f099f22afc3c3a210cf..c5be63bc8b49867f642dcdfe5b87837dbe2be9eb 100644 (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;
        }