From 85fc546c8600e1c0cf39a348981cc3be63d420df Mon Sep 17 00:00:00 2001 From: michaeljguarino Date: Mon, 24 Apr 2023 11:24:32 -0400 Subject: [PATCH] address comments --- cmd/plural/clusters.go | 4 ++-- cmd/plural/plural.go | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/cmd/plural/clusters.go b/cmd/plural/clusters.go index 79882c16..5804a4c7 100644 --- a/cmd/plural/clusters.go +++ b/cmd/plural/clusters.go @@ -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 diff --git a/cmd/plural/plural.go b/cmd/plural/plural.go index ae8f4954..118ffe4e 100644 --- a/cmd/plural/plural.go +++ b/cmd/plural/plural.go @@ -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)