URL:
https://github.com/freeipa/freeipa/pull/5710
Author: flo-renaud
Title: #5710: client install: do not capture sudo -V stdout
Action: opened
PR body:
"""
### client install: do not capture sudo -V stdout
ipa-client-install is checking if the sudo command is available
by calling 'sudo -V'. The call is currently using subprocess.popen
which redirects the output to the default stdout.
Use ipautil.run instead of subprocess.popen as this does not
capture stdout (the command output is just logged in the debug file).
Fixes:
https://pagure.io/freeipa/issue/8767
### ipatests: check that the output of sudo -V is not displayed
During client installation, the installer calls sudo -V
to check if sudo command is installed. The output must not
be displayed in stdout.
Related:
https://pagure.io/freeipa/issue/8767
"""
To pull the PR as Git branch:
git remote add ghfreeipa
https://github.com/freeipa/freeipa
git fetch ghfreeipa pull/5710/head:pr5710
git checkout pr5710