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 8, 2023
1 parent 50205ad commit d7db738
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/golangci-lint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,5 @@ jobs:
- name: golangci-lint
uses: golangci/golangci-lint-action@639cd343e1d3b897ff35927a75193d57cfcba299 # tag=v3.6.0
with:
version: v1.53.3
version: v1.53.3
args: --out-format=colored-line-number
3 changes: 1 addition & 2 deletions pkg/session/session.go
Original file line number Diff line number Diff line change
Expand Up @@ -332,7 +332,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 @@ -344,7 +344,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 d7db738

Please sign in to comment.