Explorar el Código

Skip prepull status check when etcd is being scaled up

Vadim Rutkovsky hace 6 años
padre
commit
34f686df0c
Se han modificado 1 ficheros con 4 adiciones y 1 borrados
  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