Skip to content

Commit

Permalink
fix last message
Browse files Browse the repository at this point in the history
  • Loading branch information
bcobzh committed Sep 25, 2024
1 parent 4b0967b commit 787f291
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dist/clever-deploy.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,13 +82,13 @@ def deploy():
fg_get_logs = deployment_logs(clever_cli, new_deployments[0], app_alias)
offset = 0
while True:
deployments = get_deployments(clever_cli, app_alias)
deployment_info = [d for d in deployments if d["uuid"] == deployment_uid][0]
stdout = fg_get_logs.runner.stdout.copy()
if len(stdout) > offset:
sys.stdout.write(''.join(stdout[offset:]))
offset = len(stdout)
offset = len(stdout)
deployments = get_deployments(clever_cli, app_alias)
deployment_info = [d for d in deployments if d["uuid"] == deployment_uid][0]
if deployment_info["state"] != "WIP":
break
time.sleep(3)
Expand Down

0 comments on commit 787f291

Please sign in to comment.