浏览代码

Bug 1274201 - Fixing sudo non-interactive test

https://bugzilla.redhat.com/show_bug.cgi?id=1274201#c13
Brenton Leanhardt 9 年之前
父节点
当前提交
82b4209c02
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      utils/src/ooinstall/openshift_ansible.py

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

@@ -46,7 +46,7 @@ def generate_inventory(hosts):
 
     if any(host.hostname == installer_host or host.public_hostname == installer_host
             for host in hosts):
-        no_pwd_sudo = subprocess.call(['sudo', '-v', '--non-interactive'])
+        no_pwd_sudo = subprocess.call(['sudo', '-v', '-n'])
         if no_pwd_sudo == 1:
             print 'The atomic-openshift-installer requires sudo access without a password.'
             sys.exit(1)