mirror of https://github.com/hashicorp/consul
Merge pull request #2793 from hashicorp/b-dereg-acl
Adds token to deregister request when reconciling.pull/2796/head
commit
dd6a3f9fae
|
@ -550,6 +550,7 @@ func (s *Server) handleDeregisterMember(reason string, member serf.Member) error
|
|||
req := structs.DeregisterRequest{
|
||||
Datacenter: s.config.Datacenter,
|
||||
Node: member.Name,
|
||||
WriteRequest: structs.WriteRequest{Token: s.config.GetTokenForAgent()},
|
||||
}
|
||||
var out struct{}
|
||||
return s.endpoints.Catalog.Deregister(&req, &out)
|
||||
|
|
Loading…
Reference in New Issue