diff options
author | Paul Bonaud <paul.bonaud@fretlink.com> | 2020-06-29 17:52:26 +0200 |
---|---|---|
committer | Paul Bonaud <paul.bonaud@fretlink.com> | 2020-06-29 17:52:26 +0200 |
commit | c47b6b55335a01be4a8dbbfb42a276e5222b3908 (patch) | |
tree | 2eff4b1afd34b3873dd2e4c8ae3b3328abd21e60 /tasks/deploy.yml | |
parent | fa354e658404a6b8f57a5e17c9871931febb8080 (diff) | |
download | ansible-clever-c47b6b55335a01be4a8dbbfb42a276e5222b3908.tar.gz ansible-clever-c47b6b55335a01be4a8dbbfb42a276e5222b3908.tar.zst ansible-clever-c47b6b55335a01be4a8dbbfb42a276e5222b3908.zip |
fix: prevent crash when the deployment times out
Diffstat (limited to 'tasks/deploy.yml')
-rw-r--r-- | tasks/deploy.yml | 2 |
1 files changed, 1 insertions, 1 deletions
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 @@ | |||
75 | - name: Retry deploy to clever-cloud | 75 | - name: Retry deploy to clever-cloud |
76 | include_tasks: redeploy.yml | 76 | include_tasks: redeploy.yml |
77 | when: | 77 | when: |
78 | - not job_result.rc == 0 | 78 | - not job_result.finished or not job_result.rc == 0 |
79 | - job_result.stderr is defined | 79 | - job_result.stderr is defined |
80 | - job_result.stderr is search("Failed to read git object") | 80 | - job_result.stderr is search("Failed to read git object") |
81 | 81 | ||