]> git.proxmox.com Git - pve-storage.git/commitdiff
followup: fix VMID regex, use same as JSONSchema does
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Fri, 21 Feb 2020 14:58:06 +0000 (15:58 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Fri, 21 Feb 2020 15:02:23 +0000 (16:02 +0100)
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
PVE/Storage/Plugin.pm

index 83bbf69af84766ae03838c2c5156cf9be828d9c4..eab73f527a7f0aeb085111eefdda5c7ce6ec3314 100644 (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;
            }