mirror of
https://github.com/valitydev/salt.git
synced 2024-11-07 00:55:19 +00:00
Merge pull request #13119 from rallysf/develop
Insert missing safety check
This commit is contained in:
commit
e060c74c46
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user