From d802e004171a2cb00c81a03a0371e3ba74c93451 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adri=C3=A0=20Gal=C3=ADn=20Figueras?= Date: Mon, 25 Apr 2016 08:09:51 +0200 Subject: [PATCH] Fixed netif params when create lxc container (#2064) --- lib/ansible/modules/extras/cloud/misc/proxmox.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/ansible/modules/extras/cloud/misc/proxmox.py b/lib/ansible/modules/extras/cloud/misc/proxmox.py index 1b908d99c1..9647db4bf8 100644 --- a/lib/ansible/modules/extras/cloud/misc/proxmox.py +++ b/lib/ansible/modules/extras/cloud/misc/proxmox.py @@ -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