mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
in case assign_public_ip is False, it is not handled.
This commit is contained in:
parent
9e072c7501
commit
4bea004a4e
1 changed files with 1 additions and 1 deletions
|
@ -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.")
|
||||
|
|
Loading…
Reference in a new issue