diff --git a/scripts/deploy.py b/scripts/deploy.py index 9a5d7a7..e3839f7 100644 --- a/scripts/deploy.py +++ b/scripts/deploy.py @@ -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)