| Index: common/auth/internal/iam.go
|
| diff --git a/common/auth/internal/iam.go b/common/auth/internal/iam.go
|
| index 3aebdc6f930bb1f5d9d8ef76722a5b41d11acbfd..b49aedb1a1a1fa60e30506bccb21c4e6485a816e 100644
|
| --- a/common/auth/internal/iam.go
|
| +++ b/common/auth/internal/iam.go
|
| @@ -12,9 +12,9 @@ import (
|
| "golang.org/x/oauth2"
|
| "google.golang.org/api/googleapi"
|
|
|
| - "github.com/luci/luci-go/common/errors"
|
| "github.com/luci/luci-go/common/gcloud/googleoauth"
|
| "github.com/luci/luci-go/common/gcloud/iam"
|
| + "github.com/luci/luci-go/common/retry/transient"
|
| )
|
|
|
| type iamTokenProvider struct {
|
| @@ -70,7 +70,7 @@ func (p *iamTokenProvider) MintToken(ctx context.Context, base *oauth2.Token) (*
|
| if apiErr, _ := err.(*googleapi.Error); apiErr != nil && apiErr.Code < 500 {
|
| return nil, err
|
| }
|
| - return nil, errors.WrapTransient(err)
|
| + return nil, transient.Tag.Apply(err)
|
| }
|
|
|
| func (p *iamTokenProvider) RefreshToken(ctx context.Context, prev, base *oauth2.Token) (*oauth2.Token, error) {
|
|
|