mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
If AssociatePublicIpAddress is set to True, don't auto-assign eip.
Fixes #27574
This commit is contained in:
parent
e048667c91
commit
490e1bd5bb
1 changed files with 3 additions and 2 deletions
|
@ -1293,9 +1293,10 @@ def _create_eni_if_necessary(interface):
|
|||
if isinstance(associate_public_ip, str):
|
||||
# Assume id of EIP as value
|
||||
_associate_eip_with_interface(eni_id, associate_public_ip)
|
||||
elif interface.get('associate_eip'):
|
||||
|
||||
if interface.get('associate_eip'):
|
||||
_associate_eip_with_interface(eni_id, interface.get('associate_eip'))
|
||||
elif interface.get('allocate_new_eip') or associate_public_ip:
|
||||
elif interface.get('allocate_new_eip'):
|
||||
_new_eip = _request_eip(interface)
|
||||
_associate_eip_with_interface(eni_id, _new_eip)
|
||||
elif interface.get('allocate_new_eips'):
|
||||
|
|
Loading…
Add table
Reference in a new issue