mirror of
https://git.proxmox.com/git/qemu-server
synced 2025-06-04 09:20:30 +00:00
improve complete_storage, only show storages which have the capability to run qemu images.
This commit is contained in:
parent
db593da26c
commit
c4c844ef8e
@ -6507,6 +6507,7 @@ sub complete_storage {
|
|||||||
my $res = [];
|
my $res = [];
|
||||||
foreach my $sid (keys %$ids) {
|
foreach my $sid (keys %$ids) {
|
||||||
next if !PVE::Storage::storage_check_enabled($cfg, $sid, undef, 1);
|
next if !PVE::Storage::storage_check_enabled($cfg, $sid, undef, 1);
|
||||||
|
next if !$ids->{$sid}->{content}->{images};
|
||||||
push @$res, $sid;
|
push @$res, $sid;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user