diff options
author | Tim Bielawa <tbielawa@redhat.com> | 2017-01-04 09:23:55 -0800 |
---|---|---|
committer | Tim Bielawa <tbielawa@redhat.com> | 2017-01-04 09:23:55 -0800 |
commit | bca05c177b37f3355c63680ad9c57b52d916687d (patch) | |
tree | 74a8b55e6147d0a36c7e72af7a0ca7e5e9bba697 /utils | |
parent | d234e53efcc5c7fb7b97fc7fb9105e8a9b8ae266 (diff) | |
download | openshift-bca05c177b37f3355c63680ad9c57b52d916687d.tar.gz openshift-bca05c177b37f3355c63680ad9c57b52d916687d.tar.bz2 openshift-bca05c177b37f3355c63680ad9c57b52d916687d.tar.xz openshift-bca05c177b37f3355c63680ad9c57b52d916687d.zip |
Hush the sudo privs check in oo-installer
* Don't print words when checking for sudo access
* Just 'echo' an empty string with no new-line
Closes #3003
Diffstat (limited to 'utils')
-rw-r--r-- | utils/src/ooinstall/openshift_ansible.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/utils/src/ooinstall/openshift_ansible.py b/utils/src/ooinstall/openshift_ansible.py index 113aca0e1..ce6e54664 100644 --- a/utils/src/ooinstall/openshift_ansible.py +++ b/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) |