Skip to content

Commit c6a020c

Browse files
committed
select current profile and not default
1 parent ffd1351 commit c6a020c

File tree

1 file changed

+5
-1
lines changed
  • internal/cmd/organization/list

1 file changed

+5
-1
lines changed

internal/cmd/organization/list/list.go

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,11 @@ func NewCmd(params *types.CmdParams) *cobra.Command {
5454
return err
5555
}
5656

57-
model.Member = auth.GetProfileEmail(config.DefaultProfileName)
57+
activeProfile, err := config.GetProfile()
58+
if err != nil {
59+
return fmt.Errorf("get profile: %w", err)
60+
}
61+
model.Member = auth.GetProfileEmail(activeProfile)
5862

5963
// Configure API client
6064
apiClient, err := client.ConfigureClient(params.Printer, params.CliVersion)

0 commit comments

Comments
 (0)