Skip to content

Commit

Permalink
Merge pull request #1452 from symaras/1451
Browse files Browse the repository at this point in the history
Set the Kafka version in ListAcls method
  • Loading branch information
bai authored Aug 14, 2019
2 parents 43f1fb8 + 49309c8 commit 25c9059
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions admin.go
Original file line number Diff line number Diff line change
Expand Up @@ -513,6 +513,10 @@ func (ca *clusterAdmin) ListAcls(filter AclFilter) ([]ResourceAcls, error) {

request := &DescribeAclsRequest{AclFilter: filter}

if ca.conf.Version.IsAtLeast(V2_0_0_0) {
request.Version = 1
}

b, err := ca.Controller()
if err != nil {
return nil, err
Expand Down

0 comments on commit 25c9059

Please sign in to comment.