followup: fix VMID regex, use same as JSONSchema does

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
Thomas Lamprecht
2020-02-21 15:58:06 +01:00
parent 1b39642528
commit 93afc379a3

View File

@ -924,7 +924,7 @@ my $get_subdir_files = sub {
my $format = $2;
$info = { volid => "$sid:backup/$1", format => $format };
if (defined($vmid) || $fn =~ m!\-([0-9]{3,})\-[^/]+\.${format}$!) {
if (defined($vmid) || $fn =~ m!\-([1-9][0-9]{2,8})\-[^/]+\.${format}$!) {
$info->{vmid} = $vmid // $1;
}