mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
[cloud] Check instance public-IP property before transforming to dict (#31849)
This commit is contained in:
parent
598084fbc8
commit
1b63885fc5
1 changed files with 2 additions and 2 deletions
|
@ -989,12 +989,12 @@ def enforce_count(module, ec2, vpc):
|
||||||
# ensure all instances are dictionaries
|
# ensure all instances are dictionaries
|
||||||
all_instances = []
|
all_instances = []
|
||||||
for inst in instances:
|
for inst in instances:
|
||||||
|
warn_if_public_ip_assignment_changed(module, inst)
|
||||||
|
|
||||||
if not isinstance(inst, dict):
|
if not isinstance(inst, dict):
|
||||||
inst = get_instance_info(inst)
|
inst = get_instance_info(inst)
|
||||||
all_instances.append(inst)
|
all_instances.append(inst)
|
||||||
|
|
||||||
warn_if_public_ip_assignment_changed(module, inst)
|
|
||||||
|
|
||||||
return (all_instances, instance_dict_array, changed_instance_ids, changed)
|
return (all_instances, instance_dict_array, changed_instance_ids, changed)
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue