Browse Source

Refresh instance status after create to sync status

Nuwan Goonasekera 5 năm trước cách đây
mục cha
commit
b43944b80d
1 tập tin đã thay đổi với 2 bổ sung0 xóa
  1. 2 0
      cloudbridge/providers/aws/resources.py

+ 2 - 0
cloudbridge/providers/aws/resources.py

@@ -408,6 +408,8 @@ class AWSInstance(BaseInstance):
     # pylint:disable=unused-argument
     def _wait_till_exists(self, timeout=None, interval=None):
         self._ec2_instance.wait_until_exists()
+        # refresh again to make sure instance status is in sync
+        self._ec2_instance.reload()
 
 
 class AWSVolume(BaseVolume):