Skip to content
This repository has been archived by the owner on Sep 26, 2021. It is now read-only.

Commit

Permalink
Fix panic when TCP timeout happens on SSH connect
Browse files Browse the repository at this point in the history
Signed-off-by: Darren Shepherd <darren@rancher.com>
  • Loading branch information
ibuildthecloud committed May 7, 2015
1 parent ccc2690 commit 732ca87
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ssh/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,9 @@ func (client *Client) Run(command string) (Output, error) {
if i == maxDialAttempts {
return output, errors.New("Max SSH/TCP dial attempts exceeded")
}
} else {
break
}
break
}

session, err := conn.NewSession()
Expand Down

0 comments on commit 732ca87

Please sign in to comment.