ipa-client-install: output a warning if sudo is not present (2)

Fixes: https://pagure.io/freeipa/issue/8530
Signed-off-by: François Cami <fcami@redhat.com>
Reviewed-By: Armando Neto <abiagion@redhat.com>
This commit is contained in:
François Cami 2021-03-15 16:55:08 +01:00 committed by Rob Crittenden
parent 5a1f8e76de
commit abaa614a3c

View File

@ -2205,7 +2205,7 @@ def install_check(options):
# available.
if options.conf_sudo:
try:
subprocess.Popen(['sudo -V'])
subprocess.Popen(['sudo', '-V'])
except FileNotFoundError:
logger.info(
"The sudo binary does not seem to be present on this "