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:
parent
6004f25eda
commit
4a7b5956ec
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user