summaryrefslogtreecommitdiffstats
path: root/roles/openshift_facts
diff options
context:
space:
mode:
authorScott Dodson <sdodson@redhat.com>2017-09-21 08:33:47 -0400
committerScott Dodson <sdodson@redhat.com>2017-09-21 08:33:47 -0400
commit16be0f2eb09b2e4c2b14864ba83195866479f917 (patch)
tree789cd32486c33a1eb95f276c27a40235da202acd /roles/openshift_facts
parentd9e8acafba7f4370145912732f0e305f57d617d8 (diff)
downloadopenshift-16be0f2eb09b2e4c2b14864ba83195866479f917.tar.gz
openshift-16be0f2eb09b2e4c2b14864ba83195866479f917.tar.bz2
openshift-16be0f2eb09b2e4c2b14864ba83195866479f917.tar.xz
openshift-16be0f2eb09b2e4c2b14864ba83195866479f917.zip
Ensure that hostname is lowercase
Fixes Bug 1396350
Diffstat (limited to 'roles/openshift_facts')
-rwxr-xr-xroles/openshift_facts/library/openshift_facts.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/roles/openshift_facts/library/openshift_facts.py b/roles/openshift_facts/library/openshift_facts.py
index a76751e81..03be4e7b3 100755
--- a/roles/openshift_facts/library/openshift_facts.py
+++ b/roles/openshift_facts/library/openshift_facts.py
@@ -1902,7 +1902,7 @@ class OpenShiftFacts(object):
hostname_f = output.strip() if exit_code == 0 else ''
hostname_values = [hostname_f, self.system_facts['ansible_nodename'],
self.system_facts['ansible_fqdn']]
- hostname = choose_hostname(hostname_values, ip_addr)
+ hostname = choose_hostname(hostname_values, ip_addr).lower()
defaults['common'] = dict(ip=ip_addr,
public_ip=ip_addr,