1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

Fix assign_public_ip: no disregarded (#29691) (#43954)

in case assign_public_ip is False, it is not handled.
This commit is contained in:
GElkayam 2018-08-23 23:43:44 +03:00 committed by Ryan Brown
parent 9e072c7501
commit 4bea004a4e

View file

@ -1055,7 +1055,7 @@ def create_instances(module, ec2, vpc, override_count=None):
module.fail_json(
msg="instance_profile_name parameter requires Boto version 2.5.0 or higher")
if assign_public_ip:
if assign_public_ip is not None:
if not boto_supports_associate_public_ip_address(ec2):
module.fail_json(
msg="assign_public_ip parameter requires Boto version 2.13.0 or higher.")