Fixed netif params when create lxc container (#2064)

reviewable/pr18780/r1
Adrià Galín Figueras 9 years ago committed by René Moser
parent d871df6c27
commit 014297b868

@ -213,6 +213,9 @@ def create_instance(module, proxmox, vmid, node, disk, storage, cpus, memory, sw
if VZ_TYPE =='lxc':
kwargs['cpulimit']=cpus
kwargs['rootfs']=disk
if 'netif' in kwargs:
kwargs.update(kwargs['netif'])
del kwargs['netif']
else:
kwargs['cpus']=cpus
kwargs['disk']=disk

Loading…
Cancel
Save