Bläddra i källkod

Merge pull request #897 from nekop/fix-invalid-sudo

Fix invalid sudo command test
Brenton Leanhardt 9 år sedan
förälder
incheckning
7274d4379f
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

@@ -82,7 +82,7 @@ def write_host(host, inventory, scheduleable=True):
     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', '-n', 'echo openshift'])
+            no_pwd_sudo = subprocess.call(['sudo', '-n', 'echo', 'openshift'])
             if no_pwd_sudo == 1:
                 print 'The atomic-openshift-installer requires sudo access without a password.'
                 sys.exit(1)