Skip to content

Commit

Permalink
Merge pull request #1461 from agapoff/admin-deleteacl-request-version
Browse files Browse the repository at this point in the history
Set request version in DeleteACL ClusterAdmin method
  • Loading branch information
bai authored Aug 19, 2019
2 parents 88444de + 0d98f3a commit 14f805c
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 @@ -543,6 +543,10 @@ func (ca *clusterAdmin) DeleteACL(filter AclFilter, validateOnly bool) ([]Matchi
filters = append(filters, &filter)
request := &DeleteAclsRequest{Filters: filters}

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 14f805c

Please sign in to comment.