mirror of
https://git.proxmox.com/git/qemu-server
synced 2025-05-01 11:11:20 +00:00
check_storage_availability: make content type check generic
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
parent
354e61aacc
commit
3148f0b053
@ -2466,8 +2466,10 @@ sub check_storage_availability {
|
|||||||
my $scfg = PVE::Storage::storage_check_enabled($storecfg, $sid);
|
my $scfg = PVE::Storage::storage_check_enabled($storecfg, $sid);
|
||||||
PVE::Storage::storage_check_enabled($storecfg, $sid, $node);
|
PVE::Storage::storage_check_enabled($storecfg, $sid, $node);
|
||||||
|
|
||||||
die "content type 'images' is not available on storage '$sid'\n"
|
my ($vtype) = PVE::Storage::parse_volname($storecfg, $volid);
|
||||||
if !$scfg->{content}->{images};
|
|
||||||
|
die "$volid: content type '$vtype' is not available on storage '$sid'\n"
|
||||||
|
if !$scfg->{content}->{$vtype};
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user