mirror of
https://github.com/hashicorp/packer.git
synced 2026-09-29 03:04:02 -04:00
communicator/ssh: Reset failure count if heartbeat works
This commit is contained in:
@@ -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()
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user