Browse Source

fix default value

Jason DeTiberus 9 năm trước cách đây
mục cha
commit
9a0dcd5dc1
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      playbooks/common/openshift-master/config.yml

+ 1 - 1
playbooks/common/openshift-master/config.yml

@@ -397,7 +397,7 @@
   hosts: oo_first_master
   vars:
     attach_registry_volume: "{{ openshift.hosted.registry.storage.kind != None }}"
-    deploy_infra: "{{ openshift.master.infra_nodes | default(0) | length > 0 }}"
+    deploy_infra: "{{ openshift.master.infra_nodes | default([]) | length > 0 }}"
     persistent_volumes: "{{ hostvars[groups.oo_first_master.0] | oo_persistent_volumes(groups) }}"
     persistent_volume_claims: "{{ hostvars[groups.oo_first_master.0] | oo_persistent_volume_claims }}"
   roles: