Bläddra i källkod

Updating the atomic-openshift-isntaller local connection logic for the connect_to addition.

Brenton Leanhardt 9 år sedan
förälder
incheckning
0ab85bfb33
1 ändrade filer med 1 tillägg och 1 borttagningar
  1. 1 1
      utils/src/ooinstall/openshift_ansible.py

+ 1 - 1
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'])