diff options
author | Brenton Leanhardt <bleanhar@redhat.com> | 2015-11-06 15:47:46 -0500 |
---|---|---|
committer | Brenton Leanhardt <bleanhar@redhat.com> | 2015-11-06 15:47:46 -0500 |
commit | 0ab85bfb33a141d5b23ae85fd495cf7b487f99d4 (patch) | |
tree | 14cb64278d80658b3aaeb2218af295764c84e750 | |
parent | 20ef91a6164ce5b54f5b40a6baa035e87263b772 (diff) | |
download | openshift-0ab85bfb33a141d5b23ae85fd495cf7b487f99d4.tar.gz openshift-0ab85bfb33a141d5b23ae85fd495cf7b487f99d4.tar.bz2 openshift-0ab85bfb33a141d5b23ae85fd495cf7b487f99d4.tar.xz openshift-0ab85bfb33a141d5b23ae85fd495cf7b487f99d4.zip |
Updating the atomic-openshift-isntaller local connection logic for the connect_to addition.
-rw-r--r-- | utils/src/ooinstall/openshift_ansible.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/utils/src/ooinstall/openshift_ansible.py b/utils/src/ooinstall/openshift_ansible.py index d2399df5c..0b2000a0a 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']) |