From: Paul Bonaud Date: Mon, 29 Jun 2020 15:52:26 +0000 (+0200) Subject: fix: prevent crash when the deployment times out X-Git-Tag: v2.7~2^2~1 X-Git-Url: https://git.immae.eu/?a=commitdiff_plain;h=c47b6b55335a01be4a8dbbfb42a276e5222b3908;p=github%2Ffretlink%2Fansible-clever.git fix: prevent crash when the deployment times out --- diff --git a/tasks/deploy.yml b/tasks/deploy.yml index c567981..f9d8408 100644 --- a/tasks/deploy.yml +++ b/tasks/deploy.yml @@ -75,7 +75,7 @@ - name: Retry deploy to clever-cloud include_tasks: redeploy.yml when: - - not job_result.rc == 0 + - not job_result.finished or not job_result.rc == 0 - job_result.stderr is defined - job_result.stderr is search("Failed to read git object")