Skip to content

Commit

Permalink
Fix eip association when both instance id and private ip address are …
Browse files Browse the repository at this point in the history
…passed (ansible-collections#328)

* Fix ec2_eip with both instance_id and private_ip_address
* Add changelog fragment for the ec2_eip fix
  • Loading branch information
Phoosha authored Dec 15, 2020
1 parent c4890c9 commit 0f4b980
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ec2_eip.py
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@ def associate_ip_and_device(ec2, module, address, private_ip_address, device_id,
AllowReassociation=allow_reassociation,
)
if private_ip_address:
params['PrivateIPAddress'] = private_ip_address
params['PrivateIpAddress'] = private_ip_address
if address['Domain'] == 'vpc':
params['AllocationId'] = address['AllocationId']
else:
Expand Down

0 comments on commit 0f4b980

Please sign in to comment.