summaryrefslogtreecommitdiffstats
path: root/utils/src
diff options
context:
space:
mode:
authorSamuel Munilla <smunilla@redhat.com>2016-08-25 11:12:22 -0400
committerSamuel Munilla <smunilla@redhat.com>2016-09-30 14:37:44 -0400
commit4e164964947ae9e57baf35ce24fa3455b37cdf0a (patch)
tree4fafa161a42e206cdeb83369f640471250a1f5f6 /utils/src
parent4f4d3daede9b3c57d4d8142e2479fb86f6936f3f (diff)
downloadopenshift-4e164964947ae9e57baf35ce24fa3455b37cdf0a.tar.gz
openshift-4e164964947ae9e57baf35ce24fa3455b37cdf0a.tar.bz2
openshift-4e164964947ae9e57baf35ce24fa3455b37cdf0a.tar.xz
openshift-4e164964947ae9e57baf35ce24fa3455b37cdf0a.zip
a-o-i: Fix openshift_node_labels
Handle openshift_node_labels separately because they need to be doublequoted.
Diffstat (limited to 'utils/src')
-rw-r--r--utils/src/ooinstall/openshift_ansible.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/utils/src/ooinstall/openshift_ansible.py b/utils/src/ooinstall/openshift_ansible.py
index bd0d96d09..80a79a6d2 100644
--- a/utils/src/ooinstall/openshift_ansible.py
+++ b/utils/src/ooinstall/openshift_ansible.py
@@ -36,7 +36,6 @@ HOST_VARIABLES_MAP = {
'public_ip': 'openshift_public_ip',
'hostname': 'openshift_hostname',
'public_hostname': 'openshift_public_hostname',
- 'node_labels': 'openshift_node_labels',
'containerized': 'containerized',
}
@@ -200,6 +199,9 @@ def write_host(host, role, inventory, schedulable=None):
for variable, value in host.other_variables.iteritems():
facts += " {}={}".format(variable, value)
+ if host.node_labels and role == 'node':
+ facts += ' openshift_node_labels="{}"'.format(host.node_labels)
+
# Distinguish between three states, no schedulability specified (use default),
# explicitly set to True, or explicitly set to False:
if role != 'node' or schedulable is None: