diff options
author | Brenton Leanhardt <bleanhar@redhat.com> | 2015-10-09 11:37:20 -0400 |
---|---|---|
committer | Brenton Leanhardt <bleanhar@redhat.com> | 2015-10-09 11:37:20 -0400 |
commit | 77340c9813bbdd21049d6658fc3ef083d8a05ec0 (patch) | |
tree | 85d15cc9f6ca0798985f8573e5dc3998e7928327 /roles/openshift_manage_node | |
parent | 02b41d2c0b43a1f969fdae495b61fd519281e6f1 (diff) | |
parent | ffc4ce40316acfccf1e36a9bca27c52819853e2a (diff) | |
download | openshift-77340c9813bbdd21049d6658fc3ef083d8a05ec0.tar.gz openshift-77340c9813bbdd21049d6658fc3ef083d8a05ec0.tar.bz2 openshift-77340c9813bbdd21049d6658fc3ef083d8a05ec0.tar.xz openshift-77340c9813bbdd21049d6658fc3ef083d8a05ec0.zip |
Merge pull request #635 from abutcher/bz1258243
Bug 1258243: Use lower() filter for node hostname
Diffstat (limited to 'roles/openshift_manage_node')
-rw-r--r-- | roles/openshift_manage_node/tasks/main.yml | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/roles/openshift_manage_node/tasks/main.yml b/roles/openshift_manage_node/tasks/main.yml index 7c4f45ce6..c6c7cd49e 100644 --- a/roles/openshift_manage_node/tasks/main.yml +++ b/roles/openshift_manage_node/tasks/main.yml @@ -1,6 +1,6 @@ - name: Wait for Node Registration command: > - {{ openshift.common.client_binary }} get node {{ item }} + {{ openshift.common.client_binary }} get node {{ item | lower }} register: omd_get_node until: omd_get_node.rc == 0 retries: 10 @@ -9,13 +9,13 @@ - name: Set node schedulability command: > - {{ openshift.common.admin_binary }} manage-node {{ item.openshift.common.hostname }} --schedulable={{ 'true' if item.openshift.node.schedulable | bool else 'false' }} + {{ openshift.common.admin_binary }} manage-node {{ item.openshift.common.hostname | lower }} --schedulable={{ 'true' if item.openshift.node.schedulable | bool else 'false' }} with_items: - "{{ openshift_node_vars }}" - name: Label nodes command: > - {{ openshift.common.client_binary }} label --overwrite node {{ item.openshift.common.hostname }} {{ item.openshift.node.labels | oo_combine_dict }} + {{ openshift.common.client_binary }} label --overwrite node {{ item.openshift.common.hostname | lower }} {{ item.openshift.node.labels | oo_combine_dict }} with_items: - "{{ openshift_node_vars }}" when: "'labels' in item.openshift.node and item.openshift.node.labels != {}" |