From 2247149ba40538e4e88f94d87694c5f24918041a Mon Sep 17 00:00:00 2001 From: Gan Huang Date: Tue, 9 Aug 2016 19:04:40 +0800 Subject: Labeling nodes only --- utils/src/ooinstall/openshift_ansible.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'utils/src') diff --git a/utils/src/ooinstall/openshift_ansible.py b/utils/src/ooinstall/openshift_ansible.py index f1e03f8f2..64ee23d8b 100644 --- a/utils/src/ooinstall/openshift_ansible.py +++ b/utils/src/ooinstall/openshift_ansible.py @@ -190,7 +190,8 @@ def write_host(host, role, inventory, schedulable=None): for variable, value in host.other_variables.iteritems(): facts += " {}={}".format(variable, value) if host.node_labels: - facts += ' openshift_node_labels="{}"'.format(host.node_labels) + if role == 'node': + facts += ' openshift_node_labels="{}"'.format(host.node_labels) # Distinguish between three states, no schedulability specified (use default), -- cgit v1.2.3