mirror of
https://git.proxmox.com/git/qemu-server
synced 2025-08-11 15:19:12 +00:00
migrate prepare: make content type check generic
to avoid false-positives, e.g., from a ISO on a ISO only storage. Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
parent
8a5bd88907
commit
db861a4617
@ -345,9 +345,10 @@ sub prepare {
|
|||||||
$targetsid,
|
$targetsid,
|
||||||
$self->{node},
|
$self->{node},
|
||||||
);
|
);
|
||||||
|
my ($vtype) = PVE::Storage::parse_volname($storecfg, $volid);
|
||||||
|
|
||||||
die "content type 'images' is not available on storage '$targetsid'\n"
|
die "$volid: content type '$vtype' is not available on storage '$targetsid'\n"
|
||||||
if !$target_scfg->{content}->{images};
|
if !$target_scfg->{content}->{$vtype};
|
||||||
|
|
||||||
if ($scfg->{shared}) {
|
if ($scfg->{shared}) {
|
||||||
# PVE::Storage::activate_storage checks this for non-shared storages
|
# PVE::Storage::activate_storage checks this for non-shared storages
|
||||||
|
Loading…
Reference in New Issue
Block a user