Skip to content

Commit 6511f14

Browse files
fix(kafka consumer-group): use group id filter for dynamic completions (#827)
1 parent cd69b48 commit 6511f14

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

pkg/cmdutil/cmdutil.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,9 @@ func FilterValidConsumerGroupIDs(f *factory.Factory, toComplete string) (validID
9090
return validIDs, directive
9191
}
9292
req := api.GetConsumerGroups(context.Background())
93+
if toComplete != "" {
94+
req = req.GroupIdFilter(toComplete)
95+
}
9396

9497
cgRes, _, err := req.Execute()
9598
if err != nil {

0 commit comments

Comments
 (0)