]> git.proxmox.com Git - qemu-server.git/commitdiff
Check array existed before use.
authorWolfgang Link <w.link@proxmox.com>
Thu, 23 Feb 2017 13:44:54 +0000 (14:44 +0100)
committerFabian Grünbichler <f.gruenbichler@proxmox.com>
Tue, 28 Feb 2017 11:33:27 +0000 (12:33 +0100)
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.

PVE/QemuMigrate.pm

index cd1fc2b35fe473a8109c556180445d1a70a913e6..bcd9c84e0bd44df3404a31712a0d0dcc6ba7b679 100644 (file)
@@ -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");