diff options
author | Brenton Leanhardt <bleanhar@redhat.com> | 2015-11-16 09:35:15 -0500 |
---|---|---|
committer | Brenton Leanhardt <bleanhar@redhat.com> | 2015-11-16 09:35:15 -0500 |
commit | 7274d4379f6438d80a840bf6fc0b017b57e6595c (patch) | |
tree | 04884481bf7568495a1b0d9cbc1e3a43c3a4a64c | |
parent | 5e01f408a6f38a94b8448847809c714842460238 (diff) | |
parent | d8768abb56cddf573573798cc825bcae935731e2 (diff) | |
download | openshift-7274d4379f6438d80a840bf6fc0b017b57e6595c.tar.gz openshift-7274d4379f6438d80a840bf6fc0b017b57e6595c.tar.bz2 openshift-7274d4379f6438d80a840bf6fc0b017b57e6595c.tar.xz openshift-7274d4379f6438d80a840bf6fc0b017b57e6595c.zip |
Merge pull request #897 from nekop/fix-invalid-sudo
Fix invalid sudo command test
-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 fdd0c1168..372f27bda 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', '-n', 'echo openshift']) + 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) |