Skip to content

Commit

Permalink
Fix panic in api-key list (#1732)
Browse files Browse the repository at this point in the history
  • Loading branch information
sgagniere authored Feb 23, 2023
1 parent 857fa5f commit d475e74
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/cmd/api-key/command_list.go
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ func getUsersMap(users []*ccloudv1.User) map[int32]*ccloudv1.User {
func mapResourceIdToUserId(users []*ccloudv1.User) map[string]int32 {
idMap := make(map[string]int32)
for _, user := range users {
idMap[user.ResourceId] = user.Id
idMap[user.GetResourceId()] = user.GetId()
}
return idMap
}
Expand Down

0 comments on commit d475e74

Please sign in to comment.