changing stdErr to stdOut
This commit is contained in:
parent
fbf11c1689
commit
d85e4a413a
1 changed files with 3 additions and 3 deletions
|
|
@ -770,11 +770,11 @@ ErrorCode ServerController::isUserInSudo(const ServerCredentials &credentials, D
|
|||
|
||||
if (!stdOut.contains("sudo"))
|
||||
return ErrorCode::ServerUserNotInSudo;
|
||||
if (stdErr.contains("command not found"))
|
||||
if (stdOut.contains("command not found"))
|
||||
return ErrorCode::SudoPackageIsNotPreinstalled;
|
||||
if (stdErr.contains("sudoers"))
|
||||
if (stdOut.contains("sudoers"))
|
||||
return ErrorCode::ServerUserNotListedInSudoers;
|
||||
if (stdErr.contains("password is required"))
|
||||
if (stdOut.contains("password is required"))
|
||||
return ErrorCode::ServerUserPasswordRequired;
|
||||
|
||||
return error;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue