浏览代码

[1537946] Correct conditional check for GlusterFS IPs

Russell Teague 7 年之前
父节点
当前提交
10503140b3
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. 2 1
      roles/openshift_sanitize_inventory/tasks/unsupported.yml

+ 2 - 1
roles/openshift_sanitize_inventory/tasks/unsupported.yml

@@ -45,7 +45,8 @@
 - name: Ensure the hosted registry's GlusterFS storage is configured correctly
 - name: Ensure the hosted registry's GlusterFS storage is configured correctly
   when:
   when:
   - openshift_hosted_registry_storage_kind | default(none) in ['glusterfs']
   - openshift_hosted_registry_storage_kind | default(none) in ['glusterfs']
-  - openshift_hosted_registry_storage_glusterfs_ips is defined and openshift_hosted_registry_storage_glusterfs_ips != ''
+  - openshift_hosted_registry_storage_glusterfs_ips is defined
+  - openshift_hosted_registry_storage_glusterfs_ips != []
   - "'glusterfs_registry' in groups | default([])"
   - "'glusterfs_registry' in groups | default([])"
   fail:
   fail:
     msg: |-
     msg: |-