summaryrefslogtreecommitdiffstats
path: root/utils
diff options
context:
space:
mode:
authorBrenton Leanhardt <bleanhar@redhat.com>2015-11-06 16:25:22 -0500
committerBrenton Leanhardt <bleanhar@redhat.com>2015-11-06 16:25:22 -0500
commit379782816c11498358f1cc2101839bb2b8775d7e (patch)
tree14727ddddef4f9c31f9f7a880d67f64b903b4c32 /utils
parent4517f7e1b4f189f54a616f4979579b7694a55ec7 (diff)
parent0ab85bfb33a141d5b23ae85fd495cf7b487f99d4 (diff)
downloadopenshift-379782816c11498358f1cc2101839bb2b8775d7e.tar.gz
openshift-379782816c11498358f1cc2101839bb2b8775d7e.tar.bz2
openshift-379782816c11498358f1cc2101839bb2b8775d7e.tar.xz
openshift-379782816c11498358f1cc2101839bb2b8775d7e.zip
Merge pull request #835 from brenton/master
Updating the atomic-openshift-isntaller local connection logic for th…
Diffstat (limited to 'utils')
-rw-r--r--utils/src/ooinstall/openshift_ansible.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/utils/src/ooinstall/openshift_ansible.py b/utils/src/ooinstall/openshift_ansible.py
index 83dd0222c..bac4951d5 100644
--- a/utils/src/ooinstall/openshift_ansible.py
+++ b/utils/src/ooinstall/openshift_ansible.py
@@ -79,7 +79,7 @@ def write_host(host, inventory, scheduleable=True):
if not scheduleable:
facts += ' openshift_scheduleable=False'
installer_host = socket.gethostname()
- if host.hostname == installer_host or host.public_hostname == installer_host:
+ if installer_host in [host.connect_to, host.hostname, host.public_hostname]:
facts += ' ansible_connection=local'
if os.geteuid() != 0:
no_pwd_sudo = subprocess.call(['sudo', '-v', '-n'])