ec8d72c client install: do not capture sudo -V stdout

Authored and Committed by frenaud 3 years ago
    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
    Reviewed-By: Rob Crittenden <rcritten@redhat.com>
    
        
file modified
+1 -2