mirror of
git://git.proxmox.com/git/qemu-server.git
synced 2025-09-18 09:44:21 +03:00
improve complete_storage, only show storages which have the capability to run qemu images.
This commit is contained in:
committed by
Dietmar Maurer
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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user