Merge pull request #23661 from jcaamano/master
ssh: Fix deadlock on agent forwarding error
This commit is contained in:
commit
a119ac17a4
|
@ -206,7 +206,7 @@ func (c *Communicator) Connect(o terraform.UIOutput) (err error) {
|
|||
}
|
||||
|
||||
log.Printf("[DEBUG] Setting up a session to request agent forwarding")
|
||||
session, err := c.newSession()
|
||||
session, err := c.client.NewSession()
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue