mirror of https://github.com/apache/cloudstack.git
CS-14873 : Authentication errors
This commit is contained in:
parent
8a214f3066
commit
28aaab4031
|
|
@ -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)) {
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in New Issue