mirror of https://github.com/apache/jclouds.git
JCLOUDS-561: Properly populate the ssh agent connection in the builder methods
This commit is contained in:
parent
24a7c4d195
commit
aef9fc8d83
|
@ -124,7 +124,7 @@ public final class SessionConnection implements Connection<Session> {
|
|||
|
||||
public Builder from(SessionConnection in) {
|
||||
return hostAndPort(in.hostAndPort).loginCredentials(in.loginCredentials).proxy(in.proxy.orNull())
|
||||
.connectTimeout(in.connectTimeout).sessionTimeout(in.sessionTimeout);
|
||||
.connectTimeout(in.connectTimeout).sessionTimeout(in.sessionTimeout).agentConnector(in.agentConnector);
|
||||
}
|
||||
|
||||
public Builder agentConnector(Optional<Connector> agentConnector) {
|
||||
|
|
|
@ -107,7 +107,7 @@ public class SSHClientConnection implements Connection<SSHClient> {
|
|||
|
||||
protected Builder fromSSHClientConnection(SSHClientConnection in) {
|
||||
return hostAndPort(in.getHostAndPort()).connectTimeout(in.getConnectTimeout()).loginCredentials(
|
||||
in.getLoginCredentials());
|
||||
in.getLoginCredentials()).sessionTimeout(in.getSessionTimeout()).agentConnector(in.getAgentConnector());
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue