format and storage is not a valid parameters for clone in PVE 5.2

This commit is contained in:
Sergey Bubnov 2018-10-24 19:52:37 +04:00
parent abbd377dce
commit 3ed0611b4d

View File

@ -674,7 +674,7 @@ def create_vm(module, proxmox, vmid, newid, node, name, memory, cpu, cores, sock
only_v4 = ['force', 'protection', 'skiplock']
# valide clone parameters
valid_clone_params = ['format', 'full', 'pool', 'snapname', 'storage', 'target']
valid_clone_params = ['full', 'pool', 'snapname', 'target']
clone_params = {}
# Default args for vm. Note: -args option is for experts only. It allows you to pass arbitrary arguments to kvm.
vm_args = "-serial unix:/var/run/qemu-server/{}.serial,server,nowait".format(vmid)