From 62fbf8fef800335f480d63bd6ca3780dd790ee9f Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Tue, 27 Aug 2013 22:14:31 -0700 Subject: [PATCH] communicator/ssh: Reset failure count if heartbeat works --- communicator/ssh/communicator.go | 1 + 1 file changed, 1 insertion(+) diff --git a/communicator/ssh/communicator.go b/communicator/ssh/communicator.go index ed5af22d7..ffb741851 100644 --- a/communicator/ssh/communicator.go +++ b/communicator/ssh/communicator.go @@ -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() }