mirror of https://github.com/docker/docs.git
Merge pull request #1370 from nathanleclaire/fix_native_ssh_detection
Fix defaulting to native SSH
This commit is contained in:
commit
3b29502a9d
|
@ -73,10 +73,7 @@ func SetDefaultClient(clientType SSHClientType) {
|
||||||
func NewClient(user string, host string, port int, auth *Auth) (Client, error) {
|
func NewClient(user string, host string, port int, auth *Auth) (Client, error) {
|
||||||
sshBinaryPath, err := exec.LookPath("ssh")
|
sshBinaryPath, err := exec.LookPath("ssh")
|
||||||
if err != nil {
|
if err != nil {
|
||||||
if defaultClientType == External {
|
log.Debug("SSH binary not found, using native Go implementation")
|
||||||
log.Fatal("Requested shellout SSH client type but no ssh binary available")
|
|
||||||
}
|
|
||||||
log.Debug("ssh binary not found, using native Go implementation")
|
|
||||||
return NewNativeClient(user, host, port, auth)
|
return NewNativeClient(user, host, port, auth)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue