Skip to content

Commit

Permalink
rebase to current main
Browse files Browse the repository at this point in the history
Signed-off-by: Alberto Ricart <[email protected]>
  • Loading branch information
aricart committed Jan 21, 2025
1 parent 8d7bef9 commit 3eeef07
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions cmd/reissueaccount.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,6 @@ func createReissueAccountCmd() *cobra.Command {
type reissueAccount struct {
AccountContextParams
turnIntoSigningKey bool
name string
}

func (p *reissueAccount) SetDefaults(ctx ActionCtx) error {
Expand Down Expand Up @@ -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)
}
Expand Down

0 comments on commit 3eeef07

Please sign in to comment.