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

changelog

(cherry picked from commit d16ec175fc)
pull/53283/head
s-hertel 7 years ago committed by Toshio Kuratomi
parent 0b453abfa4
commit bded9a1d65

@ -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()

@ -1111,7 +1111,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,

Loading…
Cancel
Save