From edcac217f5d4b6fe924d5b471f9beb52b986dc24 Mon Sep 17 00:00:00 2001 From: Brian Coca Date: Fri, 5 Aug 2016 19:02:26 -0400 Subject: [PATCH] make sure nic is always defined (#2678) --- lib/ansible/modules/extras/cloud/misc/ovirt.py | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/ansible/modules/extras/cloud/misc/ovirt.py b/lib/ansible/modules/extras/cloud/misc/ovirt.py index 86c769bdb24..f4f77ca8ce8 100644 --- a/lib/ansible/modules/extras/cloud/misc/ovirt.py +++ b/lib/ansible/modules/extras/cloud/misc/ovirt.py @@ -333,6 +333,7 @@ def vm_start(conn, vmname, hostname=None, ip=None, netmask=None, gateway=None, vm = conn.vms.get(name=vmname) use_cloud_init = False nics = None + nic = None if hostname or ip or netmask or gateway or domain or dns or rootpw or key: use_cloud_init = True if ip and netmask and gateway: