mirror of https://github.com/docker/docs.git
Fix defaulting to native SSH
Signed-off-by: Nathan LeClaire <nathan.leclaire@gmail.com>
This commit is contained in:
parent
6d26992101
commit
af149d13f7
|
@ -73,10 +73,7 @@ func SetDefaultClient(clientType SSHClientType) {
|
|||
func NewClient(user string, host string, port int, auth *Auth) (Client, error) {
|
||||
sshBinaryPath, err := exec.LookPath("ssh")
|
||||
if err != nil {
|
||||
if defaultClientType == External {
|
||||
log.Fatal("Requested shellout SSH client type but no ssh binary available")
|
||||
}
|
||||
log.Debug("ssh binary not found, using native Go implementation")
|
||||
log.Debug("SSH binary not found, using native Go implementation")
|
||||
return NewNativeClient(user, host, port, auth)
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue