mirror of
https://github.com/hashicorp/terraform.git
synced 2026-05-28 04:03:27 -04:00
communicator/ssh: Fix crash using SSH+HTTP proxy
This commit is contained in:
parent
80792312d8
commit
0c435e2e08
1 changed files with 13 additions and 13 deletions
|
|
@ -170,20 +170,20 @@ func (c *Communicator) Connect(o provisioners.UIOutput) (err error) {
|
|||
c.connInfo.BastionHostKey != "",
|
||||
))
|
||||
}
|
||||
}
|
||||
|
||||
if c.connInfo.ProxyHost != "" {
|
||||
o.Output(fmt.Sprintf(
|
||||
"Using configured proxy host...\n"+
|
||||
" ProxyHost: %s\n"+
|
||||
" ProxyPort: %d\n"+
|
||||
" ProxyUserName: %s\n"+
|
||||
" ProxyUserPassword: %t",
|
||||
c.connInfo.ProxyHost,
|
||||
c.connInfo.ProxyPort,
|
||||
c.connInfo.ProxyUserName,
|
||||
c.connInfo.ProxyUserPassword != "",
|
||||
))
|
||||
if c.connInfo.ProxyHost != "" {
|
||||
o.Output(fmt.Sprintf(
|
||||
"Using configured proxy host...\n"+
|
||||
" ProxyHost: %s\n"+
|
||||
" ProxyPort: %d\n"+
|
||||
" ProxyUserName: %s\n"+
|
||||
" ProxyUserPassword: %t",
|
||||
c.connInfo.ProxyHost,
|
||||
c.connInfo.ProxyPort,
|
||||
c.connInfo.ProxyUserName,
|
||||
c.connInfo.ProxyUserPassword != "",
|
||||
))
|
||||
}
|
||||
}
|
||||
|
||||
hostAndPort := fmt.Sprintf("%s:%d", c.connInfo.Host, c.connInfo.Port)
|
||||
|
|
|
|||
Loading…
Reference in a new issue