From 93afc379a37ec6e710468c322e81b9dca22d9367 Mon Sep 17 00:00:00 2001 From: Thomas Lamprecht Date: Fri, 21 Feb 2020 15:58:06 +0100 Subject: [PATCH] followup: fix VMID regex, use same as JSONSchema does Signed-off-by: Thomas Lamprecht --- PVE/Storage/Plugin.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PVE/Storage/Plugin.pm b/PVE/Storage/Plugin.pm index 83bbf69..eab73f5 100644 --- a/PVE/Storage/Plugin.pm +++ b/PVE/Storage/Plugin.pm @@ -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; } -- 2.39.2