소스 검색

Adding checks for starting mux for 2.2.0

ewolinetz 8 년 전
부모
커밋
275e302be2
1개의 변경된 파일4개의 추가작업 그리고 1개의 파일을 삭제
  1. 4 1
      roles/openshift_logging/tasks/start_cluster.yaml

+ 4 - 1
roles/openshift_logging/tasks/start_cluster.yaml

@@ -39,7 +39,10 @@
   with_items: "{{ mux_dc.results.results[0]['items'] | map(attribute='metadata.name') | list }}"
   loop_control:
     loop_var: object
-  when: openshift_logging_use_mux
+  when:
+  - mux_dc.results is defined
+  - mux_dc.results.results is defined
+  - openshift_logging_use_mux
 
 - name: Retrieve elasticsearch
   oc_obj: