Browse Source

Merge pull request #2058 from nathan7/master

Parse ACL tokens for the catalog register/deregister endpoints
pull/2071/head
James Phillips 9 years ago
parent
commit
23353b721d
  1. 2
      command/agent/catalog_endpoint.go

2
command/agent/catalog_endpoint.go

@ -19,6 +19,7 @@ func (s *HTTPServer) CatalogRegister(resp http.ResponseWriter, req *http.Request
if args.Datacenter == "" {
args.Datacenter = s.agent.config.Datacenter
}
s.parseToken(req, &args.Token)
// Forward to the servers
var out struct{}
@ -40,6 +41,7 @@ func (s *HTTPServer) CatalogDeregister(resp http.ResponseWriter, req *http.Reque
if args.Datacenter == "" {
args.Datacenter = s.agent.config.Datacenter
}
s.parseToken(req, &args.Token)
// Forward to the servers
var out struct{}

Loading…
Cancel
Save