]> git.proxmox.com Git - qemu-server.git/commitdiff
followup: nit-pick code cleanup
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Tue, 29 Oct 2019 18:10:20 +0000 (19:10 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Tue, 29 Oct 2019 18:11:21 +0000 (19:11 +0100)
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
PVE/CLI/qm.pm

index 75e27044929f22eecae29803a65a6e5a08c78877..59a38611ef80d8d5e4433447a20e0099ef55af1e 100755 (executable)
@@ -622,8 +622,8 @@ __PACKAGE__->register_method ({
            return;
        }
 
-       eval { PVE::QemuConfig->create_and_lock_config($vmid, 0) };
-       die "Reserving empty config for OVF import failed: $@" if $@;
+       eval { PVE::QemuConfig->create_and_lock_config($vmid) };
+       die "Reserving empty config for OVF import to VM $vmid failed: $@" if $@;
 
        my $conf = PVE::QemuConfig->load_config($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 "$@";
            die "import failed - $err";
        }
-       PVE::QemuConfig->remove_lock ($vmid, "create");
+
+       PVE::QemuConfig->remove_lock($vmid, "create");
 
        return undef;