make sure nic is always defined (#2678)

pull/18777/head
Brian Coca 8 years ago committed by Matt Clay
parent 38d1cce5d1
commit edcac217f5

@ -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:

Loading…
Cancel
Save