mirror of
git://git.proxmox.com/git/qemu-server.git
synced 2025-01-10 01:18:01 +03: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 = [];
|
||||
foreach my $sid (keys %$ids) {
|
||||
next if !PVE::Storage::storage_check_enabled($cfg, $sid, undef, 1);
|
||||
next if !$ids->{$sid}->{content}->{images};
|
||||
push @$res, $sid;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user