communicator/ssh: Reset failure count if heartbeat works

This commit is contained in:
Mitchell Hashimoto 2013-08-27 22:14:31 -07:00
parent c16c467e63
commit 62fbf8fef8
1 changed files with 1 additions and 0 deletions

View File

@ -119,6 +119,7 @@ func (c *comm) Start(cmd *packer.RemoteCmd) (err error) {
for {
dummy, err := c.config.Connection()
if err == nil {
failures = 0
dummy.Close()
}