mirror of
https://git.proxmox.com/git/qemu-server
synced 2025-06-30 16:36:54 +00:00
followup: nit-pick code cleanup
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
parent
c75bf16117
commit
73a4470a8f
@ -622,8 +622,8 @@ __PACKAGE__->register_method ({
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
eval { PVE::QemuConfig->create_and_lock_config($vmid, 0) };
|
eval { PVE::QemuConfig->create_and_lock_config($vmid) };
|
||||||
die "Reserving empty config for OVF import failed: $@" if $@;
|
die "Reserving empty config for OVF import to VM $vmid failed: $@" if $@;
|
||||||
|
|
||||||
my $conf = PVE::QemuConfig->load_config($vmid);
|
my $conf = PVE::QemuConfig->load_config($vmid);
|
||||||
die "Internal error: Expected 'create' lock in config of VM $vmid!"
|
die "Internal error: Expected 'create' lock in config of VM $vmid!"
|
||||||
@ -663,7 +663,8 @@ __PACKAGE__->register_method ({
|
|||||||
warn "Could not destroy VM $vmid: $@" if "$@";
|
warn "Could not destroy VM $vmid: $@" if "$@";
|
||||||
die "import failed - $err";
|
die "import failed - $err";
|
||||||
}
|
}
|
||||||
PVE::QemuConfig->remove_lock ($vmid, "create");
|
|
||||||
|
PVE::QemuConfig->remove_lock($vmid, "create");
|
||||||
|
|
||||||
return undef;
|
return undef;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user