mirror of https://github.com/docker/docs.git
Merge pull request #1143 from ibuildthecloud/fix-panic-2
Fix panic when TCP timeout happens on SSH connect
This commit is contained in:
commit
08ebaa01d0
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue