From d7fd922017e5d41572ccffd77f7ab53400ae87bd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Denoix?= Date: Thu, 7 Mar 2024 11:53:58 +0100 Subject: [PATCH] fix(cmd): profile list using APIKey instead of adminAPIKey (#147) --- pkg/cmd/profile/list/list.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/cmd/profile/list/list.go b/pkg/cmd/profile/list/list.go index 549fbed3..ba06c97f 100644 --- a/pkg/cmd/profile/list/list.go +++ b/pkg/cmd/profile/list/list.go @@ -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