Merge pull request #2683 from hashicorp/b-agent-forwarding-denied-is-ok
communicator/ssh: agent forward failure is not fatal
This commit is contained in:
commit
97780a20b5
|
@ -136,11 +136,13 @@ func (c *Communicator) Connect(o terraform.UIOutput) (err error) {
|
||||||
}
|
}
|
||||||
defer session.Close()
|
defer session.Close()
|
||||||
|
|
||||||
if err = agent.RequestAgentForwarding(session); err != nil {
|
err = agent.RequestAgentForwarding(session)
|
||||||
return err
|
|
||||||
}
|
|
||||||
|
|
||||||
|
if err == nil {
|
||||||
log.Printf("[INFO] agent forwarding enabled")
|
log.Printf("[INFO] agent forwarding enabled")
|
||||||
|
} else {
|
||||||
|
log.Printf("[WARN] error forwarding agent: %s", err)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if o != nil {
|
if o != nil {
|
||||||
|
|
Loading…
Reference in New Issue