Skip to content

Commit

Permalink
Fix type mismatch
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrew Chinnadorai committed Aug 10, 2022
1 parent d02169c commit 24217bb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugin/pkg/client/auth/gcp/gcp.go
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ func tokenSource(isCmd bool, gcpConfig map[string]string) (oauth2.TokenSource, e
if impersonateServiceAccount, exists := gcpConfig["impersonate-service-account"]; exists {
ts, err = impersonate.CredentialsTokenSource(context.Background(), impersonate.CredentialsConfig{
TargetPrincipal: impersonateServiceAccount,
Scopes: gcpConfig["scopes"],
Scopes: scopes,
})
if err != nil {
return nil, fmt.Errorf("cannot construct google impersonate token source: %v", err)
Expand Down

0 comments on commit 24217bb

Please sign in to comment.