Update communicator/ssh/communicator.go
Co-Authored-By: Kristin Laemmert <mildwonkey@users.noreply.github.com>
This commit is contained in:
parent
bbde7e3e35
commit
1ccf1bd9a2
|
@ -236,7 +236,7 @@ func (c *Communicator) Connect(o terraform.UIOutput) (err error) {
|
||||||
// long-running commands.
|
// long-running commands.
|
||||||
log.Printf("[DEBUG] starting ssh KeepAlives")
|
log.Printf("[DEBUG] starting ssh KeepAlives")
|
||||||
|
|
||||||
// We wont a local copy of the ssh client pointer, so that a reconnect
|
// We want a local copy of the ssh client pointer, so that a reconnect
|
||||||
// doesn't race with the running keep-alive loop.
|
// doesn't race with the running keep-alive loop.
|
||||||
sshClient := c.client
|
sshClient := c.client
|
||||||
go func() {
|
go func() {
|
||||||
|
|
Loading…
Reference in New Issue