Merge pull request #1143 from ibuildthecloud/fix-panic-2
Fix panic when TCP timeout happens on SSH connect
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user