]> git.proxmox.com Git - qemu-server.git/commit - PVE/CLI/qm.pm
Import OVF: Lock config with "lock" property
authorDominic Jäger <d.jaeger@proxmox.com>
Mon, 28 Oct 2019 11:47:34 +0000 (12:47 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Tue, 29 Oct 2019 18:11:21 +0000 (19:11 +0100)
commit439390e86829647e7a38ff76173ac4a9333e494d
tree1156af3fb663e8ccac66136e922aed4a6ac523c2
parent7f384190defcee3a74c04cb009ce25998856a065
Import OVF: Lock config with "lock" property

Previously a VMID conflict was possible when creating a VM on another node
between locking the config with lock_config_full and writing to it for the
first time with write_config.

Using create_and_lock_config eliminates this possibility. This means that now
the "lock" property is set in the config instead of using flock only.

$param was empty when it was assigned the three values "name", "memory" and
"cores" before being assigned to $conf later on. Assigning those values
directly to $conf avoids confusion about what the two variables contain.

Signed-off-by: Dominic Jäger <d.jaeger@proxmox.com>
PVE/CLI/qm.pm