Skip to content

Commit

Permalink
address comments
Browse files Browse the repository at this point in the history
  • Loading branch information
michaeljguarino committed Apr 24, 2023
1 parent 9d94f49 commit 85fc546
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions cmd/plural/clusters.go
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,8 @@ func (p *Plural) transferOwnership(c *cli.Context) error {
return err
}

if err := p.Client.TransferOwnership(man.Cluster, email); err != nil {
return err
if err := p.TransferOwnership(man.Cluster, email); err != nil {
return api.GetErrorResponse(err, "TransferOwnership")
}

man.Owner.Email = email
Expand Down
4 changes: 2 additions & 2 deletions cmd/plural/plural.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,10 @@ func (p *Plural) assumeServiceAccount(conf config.Config, man *manifest.ProjectM
conf.Email = email
conf.Token = jwt
p.Client = api.FromConfig(&conf)
accessToken, err := p.Client.GrabAccessToken()
accessToken, err := p.GrabAccessToken()
if err != nil {
utils.Error("failed to create access token, bailing")
return err
return api.GetErrorResponse(err, "GrabAccessToken")
}
conf.Token = accessToken
config.SetConfig(&conf)
Expand Down

0 comments on commit 85fc546

Please sign in to comment.