]> git.immae.eu Git - github/fretlink/ansible-clever.git/commitdiff
fix: prevent crash when the deployment times out
authorPaul Bonaud <paul.bonaud@fretlink.com>
Mon, 29 Jun 2020 15:52:26 +0000 (17:52 +0200)
committerPaul Bonaud <paul.bonaud@fretlink.com>
Mon, 29 Jun 2020 15:52:26 +0000 (17:52 +0200)
tasks/deploy.yml

index c56798146de8e8d68f297e5c62a05532cf55f60c..f9d84088d6d8bedc50945e34394b84f8ee7a6a1e 100644 (file)
@@ -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")