summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrenton Leanhardt <bleanhar@redhat.com>2015-11-12 15:04:06 -0500
committerBrenton Leanhardt <bleanhar@redhat.com>2015-11-12 15:04:06 -0500
commitacb8f80afca58ece9aebbc0b17428c9bc319d22a (patch)
tree5ddfdd1bc675ff1e14ed6187dd69fcdac3385c8b
parent7dc7b964f2e384d6d52aa2c7783b45a3602f0d71 (diff)
parent41d9cca310a660c160b3b2196865f6386640c20f (diff)
downloadopenshift-acb8f80afca58ece9aebbc0b17428c9bc319d22a.tar.gz
openshift-acb8f80afca58ece9aebbc0b17428c9bc319d22a.tar.bz2
openshift-acb8f80afca58ece9aebbc0b17428c9bc319d22a.tar.xz
openshift-acb8f80afca58ece9aebbc0b17428c9bc319d22a.zip
Merge pull request #886 from smunilla/sudo_check
atomic-openshift-installer: Update nopwd sudo test
-rw-r--r--utils/src/ooinstall/openshift_ansible.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/utils/src/ooinstall/openshift_ansible.py b/utils/src/ooinstall/openshift_ansible.py
index e4c808e85..fdd0c1168 100644
--- a/utils/src/ooinstall/openshift_ansible.py
+++ b/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', '-v', '-n'])
+ 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)