Fix defaulting to native SSH

Signed-off-by: Nathan LeClaire <nathan.leclaire@gmail.com>
This commit is contained in:
Nathan LeClaire 2015-06-16 10:51:25 -07:00
parent 6d26992101
commit af149d13f7
1 changed files with 1 additions and 4 deletions

View File

@ -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)
}