Browse Source

Record etcd static pod version only if master-exec has stdout

Vadim Rutkovsky 7 years ago
parent
commit
3c70f653c6
1 changed files with 2 additions and 0 deletions
  1. 2 0
      roles/etcd/tasks/version_detect.yml

+ 2 - 0
roles/etcd/tasks/version_detect.yml

@@ -65,8 +65,10 @@
       etcd_container_version: "{{ etcd_container_version_static_pod.stdout }}"
     when:
     - l_etcd_static_pod | bool
+    - "'stdout' in etcd_container_version_static_pod"
 
   - debug:
       msg: "Etcd containerized version {{ etcd_container_version }} detected"
+    when: etcd_container_version is defined
   when:
   - openshift_is_containerized | bool