소스 검색

Merge pull request #9306 from sdodson/bz1607513

Avoid undefined variable glusterfs_heketi_user_key
Scott Dodson 6 년 전
부모
커밋
e846796b31
1개의 변경된 파일3개의 추가작업 그리고 1개의 파일을 삭제
  1. 3 1
      roles/openshift_storage_glusterfs/tasks/glusterfs_common.yml

+ 3 - 1
roles/openshift_storage_glusterfs/tasks/glusterfs_common.yml

@@ -185,7 +185,9 @@
 - name: Generate heketi user key
   set_fact:
     glusterfs_heketi_user_key: "{{ 32 | lib_utils_oo_generate_secret }}"
-  until: "glusterfs_heketi_user_key != glusterfs_heketi_admin_key"
+  until:
+  - glusterfs_heketi_user_key is defined
+  - glusterfs_heketi_user_key != glusterfs_heketi_admin_key
   delay: 1
   retries: 10
   when: