[pve-devel] [PATCH qemu-server] autocomplete: backup: also list archives from PBS storages and without compressor extension
Fiona Ebner
f.ebner at proxmox.com
Fri Jun 14 13:29:46 CEST 2024
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 at proxmox.com>
---
PVE/QemuServer.pm | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/PVE/QemuServer.pm b/PVE/QemuServer.pm
index 7815b608..fe23d4b9 100644
--- a/PVE/QemuServer.pm
+++ b/PVE/QemuServer.pm
@@ -8592,7 +8592,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});
}
}
--
2.39.2
More information about the pve-devel
mailing list