5
0
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:
Wolfgang Link 2015-11-09 11:11:47 +01:00 committed by Dietmar Maurer
parent db593da26c
commit c4c844ef8e

View File

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