Skip to content

Commit

Permalink
add err to return
Browse files Browse the repository at this point in the history
  • Loading branch information
lojies committed Sep 20, 2016
1 parent 8d0518d commit 0d675ff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/ssh/ssh.go
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ func runSSHCommand(dialer sshDialer, cmd, user, host string, signer ssh.Signer,
err = wait.Poll(5*time.Second, 20*time.Second, func() (bool, error) {
fmt.Printf("error dialing %s@%s: '%v', retrying\n", user, host, err)
if client, err = dialer.Dial("tcp", host, config); err != nil {
return false, nil
return false, err
}
return true, nil
})
Expand Down

0 comments on commit 0d675ff

Please sign in to comment.