mirror of
https://github.com/NVIDIA/nvidia-container-toolkit
synced 2025-02-23 04:38:06 +00:00
[no-relnote] fix host and port string generation for remote E2E
Signed-off-by: Carlos Eduardo Arango Gutierrez <eduardoa@nvidia.com>
This commit is contained in:
parent
b69d98d7cf
commit
ac236a80f8
@ -153,7 +153,7 @@ func connectOrDie(sshKey, sshUser, host, port string) (*ssh.Client, error) {
|
|||||||
|
|
||||||
connectionFailed := false
|
connectionFailed := false
|
||||||
for i := 0; i < 20; i++ {
|
for i := 0; i < 20; i++ {
|
||||||
client, err = ssh.Dial("tcp", host+port, sshConfig)
|
client, err = ssh.Dial("tcp", host+":"+port, sshConfig)
|
||||||
if err == nil {
|
if err == nil {
|
||||||
return client, nil // Connection succeeded, return the client.
|
return client, nil // Connection succeeded, return the client.
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user