aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorPaul Bonaud <paul.bonaud@fretlink.com>2020-06-29 17:52:26 +0200
committerPaul Bonaud <paul.bonaud@fretlink.com>2020-06-29 17:52:26 +0200
commitc47b6b55335a01be4a8dbbfb42a276e5222b3908 (patch)
tree2eff4b1afd34b3873dd2e4c8ae3b3328abd21e60
parentfa354e658404a6b8f57a5e17c9871931febb8080 (diff)
downloadansible-clever-c47b6b55335a01be4a8dbbfb42a276e5222b3908.tar.gz
ansible-clever-c47b6b55335a01be4a8dbbfb42a276e5222b3908.tar.zst
ansible-clever-c47b6b55335a01be4a8dbbfb42a276e5222b3908.zip
fix: prevent crash when the deployment times out
-rw-r--r--tasks/deploy.yml2
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