Skip to content

Commit

Permalink
fix: incorrect jwk import order (#3344)
Browse files Browse the repository at this point in the history
Closes #3343
  • Loading branch information
aeneasr committed Nov 10, 2022
1 parent 48603ba commit 729102f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/cmd_import_jwk.go
Expand Up @@ -114,7 +114,7 @@ the imported keys will be added to that set. Otherwise, a new set will be create
failed := make(map[string]error)
for src, kk := range keys {
for _, k := range kk {
result, _, err := m.JwkApi.SetJsonWebKey(cmd.Context(), k.Kid, set).JsonWebKey(k).Execute() //nolint:bodyclose
result, _, err := m.JwkApi.SetJsonWebKey(cmd.Context(), set, k.Kid).JsonWebKey(k).Execute() //nolint:bodyclose
if err != nil {
failed[src] = cmdx.PrintOpenAPIError(cmd, err)
continue
Expand Down

0 comments on commit 729102f

Please sign in to comment.