communicator/ssh: Reset failure count if heartbeat works

pull/919/head
Mitchell Hashimoto 13 years ago
parent 35d0b90f55
commit dce369fb1d

@ -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()
}

Loading…
Cancel
Save