communicator/ssh: Reset failure count if heartbeat works
This commit is contained in:
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…
Reference in New Issue