From eb7613a60f8eb6ff53aefdd055a62b3c45fead81 Mon Sep 17 00:00:00 2001 From: Fiona Ebner Date: Fri, 14 Jun 2024 13:29:46 +0200 Subject: [PATCH] autocomplete: backup: also list archives from PBS storages and without compressor extension While archives with unknown or undetermined subtype could be shown, this is only for autocompletion, so users can still specify those manually if required. Signed-off-by: Fiona Ebner --- PVE/QemuServer.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PVE/QemuServer.pm b/PVE/QemuServer.pm index cf348cac..548f13f0 100644 --- a/PVE/QemuServer.pm +++ b/PVE/QemuServer.pm @@ -8651,7 +8651,7 @@ sub complete_backup_archives { my $res = []; foreach my $id (keys %$data) { foreach my $item (@{$data->{$id}}) { - next if $item->{format} !~ m/^vma\.(${\PVE::Storage::Plugin::COMPRESSOR_RE})$/; + next if ($item->{subtype} // '') ne 'qemu'; push @$res, $item->{volid} if defined($item->{volid}); } }