From 31f3319b5650a2ca0d4ec50e99df355b8ab3de5a Mon Sep 17 00:00:00 2001 From: Wang Qiang Date: Mon, 25 May 2015 09:25:11 +0800 Subject: [PATCH] Do instance update after add tags to instance. --- cloud/amazon/ec2.py | 1 + 1 file changed, 1 insertion(+) diff --git a/cloud/amazon/ec2.py b/cloud/amazon/ec2.py index ca0e3d34bc6..019e4902fce 100644 --- a/cloud/amazon/ec2.py +++ b/cloud/amazon/ec2.py @@ -1025,6 +1025,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)