summaryrefslogtreecommitdiffstats
path: root/utils/src
diff options
context:
space:
mode:
authordkorn <dkorn@redhat.com>2016-07-27 11:43:53 +0300
committerScott Dodson <sdodson@redhat.com>2016-07-27 16:00:07 -0400
commit327a5b4d1fc27d7038f957a05c91cd4cdca33c7c (patch)
tree5e6b70a567843d09521da1a3032cbd0a28136283 /utils/src
parent21eb39662663939f89b77f2609ccb5f64d699813 (diff)
downloadopenshift-327a5b4d1fc27d7038f957a05c91cd4cdca33c7c.tar.gz
openshift-327a5b4d1fc27d7038f957a05c91cd4cdca33c7c.tar.bz2
openshift-327a5b4d1fc27d7038f957a05c91cd4cdca33c7c.tar.xz
openshift-327a5b4d1fc27d7038f957a05c91cd4cdca33c7c.zip
a-o-i: write missing openshift_node_labels
Diffstat (limited to 'utils/src')
-rw-r--r--utils/src/ooinstall/openshift_ansible.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/utils/src/ooinstall/openshift_ansible.py b/utils/src/ooinstall/openshift_ansible.py
index a41de7378..a63ada0be 100644
--- a/utils/src/ooinstall/openshift_ansible.py
+++ b/utils/src/ooinstall/openshift_ansible.py
@@ -211,6 +211,8 @@ def write_host(host, inventory, schedulable=None):
if host.other_variables:
for variable, value in host.other_variables.iteritems():
facts += " {}={}".format(variable, value)
+ if host.node_labels:
+ 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: