summaryrefslogtreecommitdiffstats
path: root/playbooks/common/openshift-cluster/upgrades
diff options
context:
space:
mode:
authorScott Dodson <sdodson@redhat.com>2018-01-22 08:40:06 -0500
committerScott Dodson <sdodson@redhat.com>2018-01-22 08:42:21 -0500
commit548cd3fc8fd8865c4ed3e1425a3d915db413f0a5 (patch)
tree039900a29028d79215ccc2fded74a94000d45fad /playbooks/common/openshift-cluster/upgrades
parent7eee4914398913674df1128e8396cc8fb64cedb1 (diff)
downloadopenshift-548cd3fc8fd8865c4ed3e1425a3d915db413f0a5.tar.gz
openshift-548cd3fc8fd8865c4ed3e1425a3d915db413f0a5.tar.bz2
openshift-548cd3fc8fd8865c4ed3e1425a3d915db413f0a5.tar.xz
openshift-548cd3fc8fd8865c4ed3e1425a3d915db413f0a5.zip
Ensure that node names are lowerecased before matching
The name field is always lowercase whereas the nodename may not have been in the past. Ensure that we lowercase it before looking for matching nodes. Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1396350
Diffstat (limited to 'playbooks/common/openshift-cluster/upgrades')
-rw-r--r--playbooks/common/openshift-cluster/upgrades/initialize_nodes_to_upgrade.yml2
1 files changed, 1 insertions, 1 deletions
diff --git a/playbooks/common/openshift-cluster/upgrades/initialize_nodes_to_upgrade.yml b/playbooks/common/openshift-cluster/upgrades/initialize_nodes_to_upgrade.yml
index fc1cbf32a..07be0b0d4 100644
--- a/playbooks/common/openshift-cluster/upgrades/initialize_nodes_to_upgrade.yml
+++ b/playbooks/common/openshift-cluster/upgrades/initialize_nodes_to_upgrade.yml
@@ -31,7 +31,7 @@
with_items: " {{ groups['oo_nodes_to_config'] }}"
when:
- hostvars[item].openshift is defined
- - hostvars[item].openshift.common.hostname in nodes_to_upgrade.results.results[0]['items'] | map(attribute='metadata.name') | list
+ - hostvars[item].openshift.common.hostname | lower in nodes_to_upgrade.results.results[0]['items'] | map(attribute='metadata.name') | list
changed_when: false
# Build up the oo_nodes_to_upgrade group, use the list filtered by label if