Explorar o código

Refresh instance status after create to sync status

Nuwan Goonasekera %!s(int64=5) %!d(string=hai) anos
pai
achega
b43944b80d
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  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):