Parcourir la source

Skip prepull status check when etcd is being scaled up

Vadim Rutkovsky il y a 6 ans
Parent
commit
34f686df0c
1 fichiers modifiés avec 4 ajouts et 1 suppressions
  1. 4 1
      roles/openshift_control_plane/tasks/main.yml

+ 4 - 1
roles/openshift_control_plane/tasks/main.yml

@@ -158,7 +158,10 @@
     jid: "{{ etcd_prepull.ansible_job_id }}"
   register: job_result
   until: job_result.finished
-  when: etcd_image_exists.stdout_lines == []
+  when:
+  - etcd_image_exists is defined
+  - "'stdout_lines' in etcd_image_exists"
+  - etcd_image_exists.stdout_lines == []
   retries: 30
 
 - name: Start and enable self-hosting node