1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

Fixed netif params when create lxc container (#2064)

This commit is contained in:
Adrià Galín Figueras 2016-04-25 08:09:51 +02:00 committed by Matt Clay
parent 07e150779d
commit d802e00417

View file

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