Signed-off-by: Alexandre Derumier <aderum...@odiso.com>
---
 PVE/QemuMigrate.pm | 7 +------
 1 file changed, 1 insertion(+), 6 deletions(-)

diff --git a/PVE/QemuMigrate.pm b/PVE/QemuMigrate.pm
index 8e22368..f8061cf 100644
--- a/PVE/QemuMigrate.pm
+++ b/PVE/QemuMigrate.pm
@@ -528,12 +528,7 @@ sub phase1_cleanup {
 
     $self->log('info', "aborting phase 1 - cleanup resources");
 
-    my $conf = $self->{vmconf};
-    delete $conf->{lock};
-    eval { PVE::QemuConfig->write_config($vmid, $conf) };
-    if (my $err = $@) {
-       $self->log('err', $err);
-    }
+    unlock_vm($self, $vmid);
 
     if ($self->{volumes}) {
        foreach my $volid (@{$self->{volumes}}) {
-- 
2.20.1

_______________________________________________
pve-devel mailing list
pve-devel@pve.proxmox.com
https://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-devel

Reply via email to