diff options
author | Scott Dodson <sdodson@redhat.com> | 2017-09-21 08:33:47 -0400 |
---|---|---|
committer | Scott Dodson <sdodson@redhat.com> | 2017-09-21 08:33:47 -0400 |
commit | 16be0f2eb09b2e4c2b14864ba83195866479f917 (patch) | |
tree | 789cd32486c33a1eb95f276c27a40235da202acd /roles/openshift_facts | |
parent | d9e8acafba7f4370145912732f0e305f57d617d8 (diff) | |
download | openshift-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-x | roles/openshift_facts/library/openshift_facts.py | 2 |
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, |