mirror of
git://git.proxmox.com/git/pve-storage.git
synced 2025-01-11 05:18:01 +03:00
base plugin: fall back to empty hash to avoid checking archive info definedness
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
parent
fb821c1828
commit
e9667b3418
@ -945,10 +945,9 @@ my $get_subdir_files = sub {
|
||||
$fn = $1;
|
||||
$info = { volid => "$sid:backup/$fn", format => $format };
|
||||
|
||||
my $archive_info = eval { PVE::Storage::archive_info($fn) };
|
||||
my $archive_info = eval { PVE::Storage::archive_info($fn) } // {};
|
||||
|
||||
$info->{ctime} = $archive_info->{ctime}
|
||||
if defined($archive_info) && defined($archive_info->{ctime});
|
||||
$info->{ctime} = $archive_info->{ctime} if defined($archive_info->{ctime});
|
||||
|
||||
if (defined($vmid) || $fn =~ m!\-([1-9][0-9]{2,8})\-[^/]+\.${format}$!) {
|
||||
$info->{vmid} = $vmid // $1;
|
||||
|
Loading…
Reference in New Issue
Block a user