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

[cloud] Ec2 module warning when IP assignment is changed on existing instances (#33783)

This commit is contained in:
Sloane Hertel 2017-12-11 15:21:56 -05:00 committed by Ryan Brown
parent a1c0b4336d
commit 5e24f5c701

View file

@ -992,9 +992,9 @@ def enforce_count(module, ec2, vpc):
# ensure all instances are dictionaries
all_instances = []
for inst in instances:
warn_if_public_ip_assignment_changed(module, inst)
if not isinstance(inst, dict):
warn_if_public_ip_assignment_changed(module, inst)
inst = get_instance_info(inst)
all_instances.append(inst)