[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)