summaryrefslogtreecommitdiffstats
path: root/roles/openshift_facts/library
diff options
context:
space:
mode:
authorThomas Wiest <twiest@users.noreply.github.com>2015-07-16 12:19:29 -0400
committerThomas Wiest <twiest@users.noreply.github.com>2015-07-16 12:19:29 -0400
commit7c5e6ad3d6df45f53a023e24215b6fba7f93571a (patch)
tree8e480f068f55cad469e585c5b85ec93998beb7bf /roles/openshift_facts/library
parent68d6fdf1c1c8244b3bd2ccdf77499d9127592368 (diff)
parent97212a26564f7af8365f1ffea7f251ddffa491b8 (diff)
downloadopenshift-7c5e6ad3d6df45f53a023e24215b6fba7f93571a.tar.gz
openshift-7c5e6ad3d6df45f53a023e24215b6fba7f93571a.tar.bz2
openshift-7c5e6ad3d6df45f53a023e24215b6fba7f93571a.tar.xz
openshift-7c5e6ad3d6df45f53a023e24215b6fba7f93571a.zip
Merge pull request #347 from detiber/fixHostnameFact
Fix hostname default when valid hostname not found on system
Diffstat (limited to 'roles/openshift_facts/library')
-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 aff822a23..727861b07 100755
--- a/roles/openshift_facts/library/openshift_facts.py
+++ b/roles/openshift_facts/library/openshift_facts.py
@@ -693,7 +693,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,