[pve-devel] [PATCH qemu-server 15/15] phase1_cleanup: use unlock_vm
Alexandre Derumier
aderumier at odiso.com
Mon Apr 29 12:01:30 CEST 2019
Signed-off-by: Alexandre Derumier <aderumier at odiso.com>
---
PVE/QemuMigrate.pm | 7 +------
1 file changed, 1 insertion(+), 6 deletions(-)
diff --git a/PVE/QemuMigrate.pm b/PVE/QemuMigrate.pm
index 6dd97e3..952bf52 100644
--- a/PVE/QemuMigrate.pm
+++ b/PVE/QemuMigrate.pm
@@ -518,12 +518,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.11.0
More information about the pve-devel
mailing list