Преглед на файлове

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

Brenton Leanhardt преди 9 години
родител
ревизия
0ab85bfb33
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  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'])