Merge pull request #13119 from rallysf/develop

Insert missing safety check
This commit is contained in:
Joseph Hall 2014-05-29 12:54:28 -06:00
commit e060c74c46

View File

@ -1278,7 +1278,7 @@ def request_instance(vm_=None, call=None):
eni_devices = []
for interface in network_interfaces:
_new_eip = None
if interface['allocate_new_eip']:
if 'allocate_new_eip' in interface and interface['allocate_new_eip']:
_new_eip = _request_eip(interface)
_new_eni = _create_eni(interface, _new_eip)
eni_devices.append(_new_eni)