diff options
author | Jason DeTiberus <jdetiber@redhat.com> | 2015-07-14 11:09:20 -0400 |
---|---|---|
committer | Jason DeTiberus <jdetiber@redhat.com> | 2015-07-14 11:09:20 -0400 |
commit | 97212a26564f7af8365f1ffea7f251ddffa491b8 (patch) | |
tree | 0412408864f3727b5b0a436f0a6fa8dd0fe90579 /roles/openshift_facts | |
parent | d24c15acde4f061f174fecc1f3312da2dea5ba19 (diff) | |
download | openshift-97212a26564f7af8365f1ffea7f251ddffa491b8.tar.gz openshift-97212a26564f7af8365f1ffea7f251ddffa491b8.tar.bz2 openshift-97212a26564f7af8365f1ffea7f251ddffa491b8.tar.xz openshift-97212a26564f7af8365f1ffea7f251ddffa491b8.zip |
Fix hostname default when valid hostname not found on system
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 ca5ea1da0..a718e7af3 100755 --- a/roles/openshift_facts/library/openshift_facts.py +++ b/roles/openshift_facts/library/openshift_facts.py @@ -683,7 +683,7 @@ class OpenShiftFacts(object): hostname_f = output.strip() if exit_code == 0 else '' hostname_values = [hostname_f, self.system_facts['nodename'], self.system_facts['fqdn']] - hostname = choose_hostname(hostname_values) + hostname = choose_hostname(hostname_values, ip_addr) common = dict(use_openshift_sdn=True, ip=ip_addr, public_ip=ip_addr, deployment_type='origin', hostname=hostname, |