summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSamuel Munilla <smunilla@redhat.com>2015-11-12 14:55:41 -0500
committerSamuel Munilla <smunilla@redhat.com>2015-11-12 14:55:41 -0500
commit41d9cca310a660c160b3b2196865f6386640c20f (patch)
tree5ddfdd1bc675ff1e14ed6187dd69fcdac3385c8b
parent7dc7b964f2e384d6d52aa2c7783b45a3602f0d71 (diff)
downloadopenshift-41d9cca310a660c160b3b2196865f6386640c20f.tar.gz
openshift-41d9cca310a660c160b3b2196865f6386640c20f.tar.bz2
openshift-41d9cca310a660c160b3b2196865f6386640c20f.tar.xz
openshift-41d9cca310a660c160b3b2196865f6386640c20f.zip
atomic-openshift-installer: Update nopwd sudo test
This is an update to the no password sudo test meant to address some weirdness around group vs. user permissions.
-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)