Remove resetting SiteName

Not sure why it was needed. Perhaps to clear the default that we just removed? But even if add the default back and remove this fix, everything works.
This commit is contained in:
Grzegorz Zdunek
2025-11-19 14:52:29 +01:00
parent 924d57e5a7
commit f54ab3f22a
-4
View File
@@ -145,10 +145,6 @@ func (c *Cluster) updateClientFromPingResponse(ctx context.Context) (*webclient.
type SSHLoginFunc func(context.Context, *keys.PrivateKey) (*authclient.SSHLoginResponse, error)
func (c *Cluster) login(ctx context.Context, sshLoginFunc client.SSHLoginFunc) error {
// TODO(alex-kovoy): SiteName needs to be reset if trying to login to a cluster with
// existing profile for the first time (investigate why)
c.clusterClient.SiteName = ""
key, err := c.clusterClient.SSHLogin(ctx, sshLoginFunc)
if err != nil {
return trace.Wrap(err)