Explorar o código

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

Brenton Leanhardt %!s(int64=9) %!d(string=hai) anos
pai
achega
0ab85bfb33
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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'])