mirror of
https://git.proxmox.com/git/qemu-server
synced 2025-08-05 20:36:20 +00:00
Check array existed before use.
This triggers if a qemu guest has a local unused disk. The disk will migrate by offline disk migration, so it is not in the target_drives.
This commit is contained in:
parent
655d746212
commit
9045f57a27
@ -592,7 +592,7 @@ sub phase2 {
|
||||
|
||||
my $start = time();
|
||||
|
||||
if ($self->{opts}->{targetstorage}) {
|
||||
if ($self->{opts}->{targetstorage} && defined $self->{online_local_volumes}) {
|
||||
$self->{storage_migration} = 1;
|
||||
$self->{storage_migration_jobs} = {};
|
||||
$self->log('info', "starting storage migration");
|
||||
|
Loading…
Reference in New Issue
Block a user