Skip to content

Commit

Permalink
If the private_ip has been provided for the new network interface it …
Browse files Browse the repository at this point in the history
…shouldn't also be added to top level parameters for run_instances (#52579)

changelog
  • Loading branch information
s-hertel committed Mar 4, 2019
1 parent 239fb1f commit 4cf7854
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
bugfixes:
- ec2 - if the private_ip has been provided for the new network interface it shouldn't also be added to top level
parameters for run_instances()
2 changes: 1 addition & 1 deletion lib/ansible/modules/cloud/amazon/ec2.py
Original file line number Diff line number Diff line change
Expand Up @@ -1112,7 +1112,7 @@ def create_instances(module, ec2, vpc, override_count=None):

# check to see if we're using spot pricing first before starting instances
if not spot_price:
if assign_public_ip and private_ip:
if assign_public_ip is not None and private_ip:
params.update(
dict(
min_count=count_remaining,
Expand Down

0 comments on commit 4cf7854

Please sign in to comment.