mirror of
https://git.proxmox.com/git/qemu-server
synced 2025-05-29 12:38:19 +00:00
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:
parent
8964b466ae
commit
eb7613a60f
@ -8651,7 +8651,7 @@ sub complete_backup_archives {
|
|||||||
my $res = [];
|
my $res = [];
|
||||||
foreach my $id (keys %$data) {
|
foreach my $id (keys %$data) {
|
||||||
foreach my $item (@{$data->{$id}}) {
|
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});
|
push @$res, $item->{volid} if defined($item->{volid});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user