Browse Source

Ensure that hostname is lowercase

Fixes Bug 1396350
Scott Dodson 7 years ago
parent
commit
16be0f2eb0
1 changed files with 1 additions and 1 deletions
  1. 1 1
      roles/openshift_facts/library/openshift_facts.py

+ 1 - 1
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,