Increase SSH timeout back to five minutes

Signed-off-by: Nathan LeClaire <nathan.leclaire@gmail.com>
This commit is contained in:
Nathan LeClaire 2015-10-21 15:27:20 -07:00
parent de5d052985
commit 4157dff31c
1 changed files with 1 additions and 2 deletions

View File

@ -2,7 +2,6 @@ package drivers
import (
"fmt"
"time"
"github.com/docker/machine/libmachine/log"
"github.com/docker/machine/libmachine/mcnutils"
@ -64,7 +63,7 @@ func sshAvailableFunc(d Driver) func() bool {
func WaitForSSH(d Driver) error {
// Try to dial SSH for 30 seconds before timing out.
if err := mcnutils.WaitForSpecific(sshAvailableFunc(d), 6, 5*time.Second); err != nil {
if err := mcnutils.WaitFor(sshAvailableFunc(d)); err != nil {
return fmt.Errorf("Too many retries waiting for SSH to be available. Last error: %s", err)
}
return nil