瀏覽代碼

Check for openshift attribute before using it during CNS install.

Fixes: BZ1523681
Jiri Mencak 7 年之前
父節點
當前提交
0e41e51763
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      roles/openshift_storage_glusterfs/tasks/glusterfs_deploy.yml

+ 1 - 1
roles/openshift_storage_glusterfs/tasks/glusterfs_deploy.yml

@@ -23,7 +23,7 @@
     state: absent
     labels: "{{ glusterfs_nodeselector | oo_dict_to_list_of_dict }}"
   with_items: "{{ groups.all }}"
-  when: glusterfs_wipe
+  when: "'openshift' in hostvars[item] and glusterfs_wipe"
 
 - name: Delete pre-existing GlusterFS config
   file: