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

Do instance update after add tags to instance.

This commit is contained in:
Wang Qiang 2015-05-25 09:25:11 +08:00 committed by Matt Clay
parent 20301427f8
commit 86b6f39cf0

View file

@ -1021,6 +1021,7 @@ def create_instances(module, ec2, vpc, override_count=None):
instance_dict_array = []
created_instance_ids = []
for inst in running_instances:
inst.update()
d = get_instance_info(inst)
created_instance_ids.append(inst.id)
instance_dict_array.append(d)