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 <f.ebner@proxmox.com>
This commit is contained in:
Fiona Ebner 2024-06-14 13:29:46 +02:00 committed by Thomas Lamprecht
parent 8964b466ae
commit eb7613a60f

View File

@ -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});
}
}