Skip to content

Commit fea0768

Browse files
committed
wait for status different than ordered instead of equals provisioning
1 parent 8f741d6 commit fea0768

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

datacrunch/instances/instances.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ def create(self,
175175
start_time = time.time()
176176
while True:
177177
instance = self.get_by_id(id)
178-
if instance.status == InstanceStatus.PROVISIONING:
178+
if instance.status != InstanceStatus.ORDERED:
179179
return instance
180180

181181
if time.time() - start_time > MAX_WAIT_TIME:

0 commit comments

Comments
 (0)