Browse Source

Bug 1274201 - Fixing sudo non-interactive test

https://bugzilla.redhat.com/show_bug.cgi?id=1274201#c13
Brenton Leanhardt 9 năm trước cách đây
mục cha
commit
82b4209c02
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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)