Skip to content

Commit

Permalink
Merge branch 'session-keepalive' of https://github.com/spectrocloud/c…
Browse files Browse the repository at this point in the history
…luster-api-provider-vsphere into session-keepalive
  • Loading branch information
sadysnaat committed Apr 7, 2021
2 parents cda025d + 1dc2499 commit bf7032d
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 6 deletions.
5 changes: 0 additions & 5 deletions pkg/services/govmomi/vcenter/clone_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -142,11 +142,6 @@ func initSimulator(t *testing.T) (*simulator.Model, *session.Session, *simulator
server := model.Service.NewServer()
pass, _ := server.URL.User.Password()

//authSession, err := session.GetOrCreate(
// session.NewSessionContext(ctx.TODO(), klogr.New()),
// server.URL.Host, "",
// server.URL.User.Username(), pass, "",
// session.DefaultFeature())
authSession, err := session.GetOrCreate(
session.NewSessionContext(ctx.TODO(), klogr.New()),
session.NewParams().
Expand Down
1 change: 0 additions & 1 deletion pkg/session/session.go
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,6 @@ func GetOrCreate(ctx Context, params *Params) (*Session, error) {
sessionMU.Lock()
defer sessionMU.Unlock()

sessionKey := params.server + params.userinfo.Username() + params.datacenter
if session, ok := sessionCache[sessionKey]; ok {
// if keepalive is enabled we depend upon roundtripper to reestablish the connection
// and remove the key if it could not
Expand Down

0 comments on commit bf7032d

Please sign in to comment.