From 3eeef074e9ed1502ae7147470af682f667ecbbef Mon Sep 17 00:00:00 2001 From: Alberto Ricart Date: Tue, 21 Jan 2025 09:33:49 -0600 Subject: [PATCH] rebase to current main Signed-off-by: Alberto Ricart --- cmd/reissueaccount.go | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/cmd/reissueaccount.go b/cmd/reissueaccount.go index 24b30c0b..e2b03ce9 100644 --- a/cmd/reissueaccount.go +++ b/cmd/reissueaccount.go @@ -49,7 +49,6 @@ func createReissueAccountCmd() *cobra.Command { type reissueAccount struct { AccountContextParams turnIntoSigningKey bool - name string } func (p *reissueAccount) SetDefaults(ctx ActionCtx) error { @@ -117,7 +116,11 @@ func (p *reissueAccount) Run(ctx ActionCtx) (store.Status, error) { return r, err } old := ac.Subject - ac.Subject, err = akp.PublicKey() + if ac.Subject, err = akp.PublicKey(); err != nil { + rr.AddError("failed generate account public key: %v", err) + return r, err + } + if p.turnIntoSigningKey { ac.SigningKeys.Add(old) }