mirror of
https://github.com/letic/terraform-provider-proxmox.git
synced 2024-09-28 22:16:03 +00:00
restore ssh port option for ssh_forward
This commit is contained in:
parent
baf8df69f7
commit
23e407d44c
@ -903,6 +903,12 @@ func initConnInfo(
|
||||
ipMatch := rxIPconfig.FindStringSubmatch(d.Get("ipconfig0").(string))
|
||||
sshHost = ipMatch[1]
|
||||
}
|
||||
// Check if we got a speficied port
|
||||
if strings.Contains(sshHost, ":") {
|
||||
sshParts := strings.Split(sshHost, ":")
|
||||
sshHost = sshParts[0]
|
||||
sshPort = sshParts[1]
|
||||
}
|
||||
} else {
|
||||
log.Print("[DEBUG] setting up SSH forward")
|
||||
sshPort, err = pxapi.SshForwardUsernet(vmr, client)
|
||||
|
Loading…
Reference in New Issue
Block a user