Browse Source

Fix KVSGet method to handle QueryOptions properly (#13344)

pull/13196/head
Chris S. Kim 3 years ago committed by GitHub
parent
commit
73af9e9737
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 3
      .changelog/13344.txt
  2. 2
      agent/kvs_endpoint.go

3
.changelog/13344.txt

@ -0,0 +1,3 @@
```release-note:bug
kvs: Fixed a bug where query options were not being applied to KVS.Get RPC operations.
```

2
agent/kvs_endpoint.go

@ -69,7 +69,7 @@ func (s *HTTPHandlers) KVSGet(resp http.ResponseWriter, req *http.Request, args
// Make the RPC
var out structs.IndexedDirEntries
if err := s.agent.RPC(method, &args, &out); err != nil {
if err := s.agent.RPC(method, args, &out); err != nil {
return nil, err
}
setMeta(resp, &out.QueryMeta)

Loading…
Cancel
Save