diff --git a/salt/cloud/clouds/ec2.py b/salt/cloud/clouds/ec2.py index e38ba6a3ea..484b042e9e 100644 --- a/salt/cloud/clouds/ec2.py +++ b/salt/cloud/clouds/ec2.py @@ -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)