[cloud] Ec2 module warning when IP assignment is changed on existing instances (#33783)
This commit is contained in:
parent
a1c0b4336d
commit
5e24f5c701
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
||||
|
|
Loading…
Reference in a new issue