Преглед изворни кода

Fix issue when there are no infra nodes

This issue was already addressed by #1355 fc2f776 but it has been accidentally reverted by 6d3e176.
Lénaïc Huard пре 9 година
родитељ
комит
913d7bc61f

+ 1 - 1
playbooks/aws/openshift-cluster/cluster_hosts.yml

@@ -16,6 +16,6 @@ g_node_hosts:    "{{ g_all_hosts | intersect(groups['tag_host-type_node'] | defa
 
 g_new_node_hosts: "{{ g_all_hosts | intersect(groups['tag_host-type_new_node'] | default([])) }}"
 
-g_infra_hosts:   "{{ g_node_hosts | intersect(groups['tag_sub-host-type_infra']) | default([]) }}"
+g_infra_hosts:   "{{ g_node_hosts | intersect(groups['tag_sub-host-type_infra'] | default([])) }}"
 
 g_compute_hosts: "{{ g_node_hosts | intersect(groups['tag_sub-host-type_compute'] | default([])) }}"

+ 1 - 1
playbooks/gce/openshift-cluster/cluster_hosts.yml

@@ -16,6 +16,6 @@ g_node_hosts:    "{{ g_all_hosts | intersect(groups['tag_host-type-node'] | defa
 
 g_new_node_hosts: "{{ g_all_hosts | intersect(groups['tag_host-type-new-node'] | default([])) }}"
 
-g_infra_hosts:   "{{ g_node_hosts | intersect(groups['tag_sub-host-type-infra']) | default([]) }}"
+g_infra_hosts:   "{{ g_node_hosts | intersect(groups['tag_sub-host-type-infra'] | default([])) }}"
 
 g_compute_hosts: "{{ g_node_hosts | intersect(groups['tag_sub-host-type-compute'] | default([])) }}"

+ 1 - 1
playbooks/libvirt/openshift-cluster/cluster_hosts.yml

@@ -16,6 +16,6 @@ g_node_hosts:    "{{ g_all_hosts | intersect(groups['tag_host-type-node'] | defa
 
 g_new_node_hosts: "{{ g_all_hosts | intersect(groups['tag_host-type-new-node'] | default([])) }}"
 
-g_infra_hosts:   "{{ g_node_hosts | intersect(groups['tag_sub-host-type-infra']) | default([]) }}"
+g_infra_hosts:   "{{ g_node_hosts | intersect(groups['tag_sub-host-type-infra'] | default([])) }}"
 
 g_compute_hosts: "{{ g_node_hosts | intersect(groups['tag_sub-host-type-compute'] | default([])) }}"

+ 1 - 1
playbooks/openstack/openshift-cluster/cluster_hosts.yml

@@ -16,6 +16,6 @@ g_node_hosts:    "{{ g_all_hosts | intersect(groups['tag_host-type_node'] | defa
 
 g_new_node_hosts: "{{ g_all_hosts | intersect(groups['tag_host-type_new_node'] | default([])) }}"
 
-g_infra_hosts:   "{{ g_node_hosts | intersect(groups['tag_sub-host-type_infra']) | default([]) }}"
+g_infra_hosts:   "{{ g_node_hosts | intersect(groups['tag_sub-host-type_infra'] | default([])) }}"
 
 g_compute_hosts: "{{ g_node_hosts | intersect(groups['tag_sub-host-type_compute'] | default([])) }}"