소스 검색

Merge pull request #3037 from tbielawa/hush_sudo_check

Hush the sudo privs check in oo-installer
Scott Dodson 8 년 전
부모
커밋
c595be4c25
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      utils/src/ooinstall/openshift_ansible.py

+ 1 - 1
utils/src/ooinstall/openshift_ansible.py

@@ -212,7 +212,7 @@ def write_host(host, role, inventory, schedulable=None):
     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', '-n'])
             if no_pwd_sudo == 1:
                 print('The atomic-openshift-installer requires sudo access without a password.')
                 sys.exit(1)