Fix: deploy.py status check — accept finished as success
This commit is contained in:
+1
-1
@@ -170,7 +170,7 @@ def wait_for_deployment(client: CoolifyClient, deployment_uuid: str, timeout: in
|
||||
status = dep.get("status", "unknown")
|
||||
elapsed = int(time.time() - start)
|
||||
print(f" [{elapsed}s] Status: {status}")
|
||||
if status == "success":
|
||||
if status in ("success", "finished"):
|
||||
return DeployResult(True, "Deployment successful", time.time() - start, dep)
|
||||
if status == "failed":
|
||||
return DeployResult(False, f"Deployment failed: {dep.get('message', 'unknown')}", time.time() - start, dep)
|
||||
|
||||
Reference in New Issue
Block a user