Now that the virAuthGet*Path API's generate all the error messages
we can remove them from the callers.
Signed-off-by: John Ferlan <jferlan@redhat.com>
Reviewed-by: Marcos Paulo de Souza <marcos.souza.org@gmail.com>
if (!(password = virAuthGetPasswordPath(sess->authPath, sess->cred,
"ssh", sess->username,
sess->hostname))) {
- virReportError(VIR_ERR_INTERNAL_ERROR, "%s",
- _("failed to retrieve password"));
ret = SSH_AUTH_ERROR;
goto cleanup;
}
while (true) {
if (!(password = virAuthGetPasswordPath(sess->authPath, sess->cred,
"ssh", priv->username,
- sess->hostname))) {
- virReportError(VIR_ERR_INTERNAL_ERROR, "%s",
- _("failed to retrieve password"));
+ sess->hostname)))
goto cleanup;
- }
/* tunelled password authentication */
if ((rc = libssh2_userauth_password(sess->session,