]> git.proxmox.com Git - pve-storage.git/blobdiff - PVE/Storage/Plugin.pm
followup: fix VMID regex, use same as JSONSchema does
[pve-storage.git] / 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;
            }