Fix updating connection when SSH port conflict happens

Signed-off-by: Gabriel Parreiras <gabriel.parreiras@shopify.com>
This commit is contained in:
Gabriel Parreiras
2024-05-03 12:56:17 +01:00
parent 6ec2c0b43b
commit 277312d282
3 changed files with 95 additions and 1 deletions

View File

@ -64,7 +64,7 @@ func UpdateConnectionPairPort(name string, port, uid int, remoteUsername string,
URI: con.uri.String(),
Identity: identityPath,
}
cfg.Connection.Connections[name] = dst
cfg.Connection.Connections[con.name] = dst
}
return nil