CS-14873 : Authentication errors

This commit is contained in:
Pranav Saxena 2012-05-12 16:25:50 +05:30 committed by Brian Federle
parent 8a214f3066
commit 28aaab4031
2 changed files with 2 additions and 2 deletions

View File

@ -168,7 +168,7 @@ public class KvmServerDiscoverer extends DiscovererBase implements Discoverer,
sshConnection.connect(null, 60000, 60000);
if (!sshConnection.authenticateWithPassword(username, password)) {
s_logger.debug("Failed to authenticate");
throw new DiscoveredWithErrorException("Authetication error");
throw new DiscoveredWithErrorException("Authentication error");
}
if (!SSHCmdHelper.sshExecuteCmd(sshConnection, "lsmod|grep kvm", 3)) {

View File

@ -315,7 +315,7 @@ public class XcpServerDiscoverer extends DiscovererBase implements Discoverer, L
resources.put(resource, details);
}
} catch (SessionAuthenticationFailed e) {
throw new DiscoveredWithErrorException("Authetication error");
throw new DiscoveredWithErrorException("Authentication error");
} catch (XenAPIException e) {
s_logger.warn("XenAPI exception", e);
return null;