Skip to content

Commit

Permalink
fix(cmd): profile list using APIKey instead of adminAPIKey (#147)
Browse files Browse the repository at this point in the history
  • Loading branch information
clemfromspace authored Mar 7, 2024
1 parent d2e4724 commit d7fd922
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/cmd/profile/list/list.go
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ func runListCmd(opts *AddOptions) error {

opts.IO.StartProgressIndicatorWithLabel("Fetching configured profiles")
for _, profile := range profiles {
client := search.NewClient(profile.ApplicationID, profile.AdminAPIKey)
client := search.NewClient(profile.ApplicationID, profile.APIKey)
res, err := client.ListIndices()
if err != nil {
return err
Expand Down

0 comments on commit d7fd922

Please # to comment.