Explorar o código

Wait for AWSImage.delete

almahmoud %!s(int64=7) %!d(string=hai) anos
pai
achega
eeb4996074
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      cloudbridge/cloud/providers/aws/resources.py

+ 1 - 0
cloudbridge/cloud/providers/aws/resources.py

@@ -124,6 +124,7 @@ class AWSMachineImage(BaseMachineImage):
         snapshot = self._provider.storage.snapshots.get(snapshot_id[0])
         if snapshot:
             snapshot.delete()
+            snapshot.wait_till_ready()
 
     @property
     def state(self):