Browse Source

a-o-i: write missing openshift_node_labels

dkorn 8 years ago
parent
commit
327a5b4d1f
1 changed files with 2 additions and 0 deletions
  1. 2 0
      utils/src/ooinstall/openshift_ansible.py

+ 2 - 0
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: