From 0ff28a12fac9ae123b4c5c1aea573b2d60032a6e Mon Sep 17 00:00:00 2001 From: Armon Dadgar Date: Thu, 14 Aug 2014 19:34:50 -0700 Subject: [PATCH] agent: Copy token in KV PUT/DELETE --- command/agent/kvs_endpoint.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/command/agent/kvs_endpoint.go b/command/agent/kvs_endpoint.go index dfcce3025f..48d9ce19d5 100644 --- a/command/agent/kvs_endpoint.go +++ b/command/agent/kvs_endpoint.go @@ -145,6 +145,7 @@ func (s *HTTPServer) KVSPut(resp http.ResponseWriter, req *http.Request, args *s Value: nil, }, } + applyReq.Token = args.Token // Check for flags params := req.URL.Query() @@ -215,6 +216,7 @@ func (s *HTTPServer) KVSDelete(resp http.ResponseWriter, req *http.Request, args Key: args.Key, }, } + applyReq.Token = args.Token // Check for recurse params := req.URL.Query()