Skip to content

Commit

Permalink
Modify golangci-lint for more context
Browse files Browse the repository at this point in the history
  • Loading branch information
lubronzhan committed Aug 10, 2023
1 parent 6224acb commit 6e0d117
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions pkg/session/session.go
Original file line number Diff line number Diff line change
Expand Up @@ -341,7 +341,7 @@ func login(ctx context.Context, logger logr.Logger, client *govmomi.Client, user
logger.Info("Bother usrename/password and userCertificate/userKey are set. Using the userCertificate/userKey")
}

logger.V(4).Info("Session.LoginByToken with certificate", string(userCert))
logger.V(4).Info("Session.LoginByToken with certificate", userCert)
signer, err := signer(ctx, logger, client.Client, userCert, userKey)
if err != nil {
return err
Expand All @@ -353,7 +353,6 @@ func login(ctx context.Context, logger logr.Logger, client *govmomi.Client, user

// basic auth login
return client.Login(ctx, user)

}

func loginWithRestClient(ctx context.Context, logger logr.Logger, rc *rest.Client, client *vim25.Client, user *url.Userinfo, userCert, userKey string) error {
Expand Down

0 comments on commit 6e0d117

Please sign in to comment.