Adds token to deregister request when reconciling.

Fixes #2792.
This commit is contained in:
James Phillips 2017-03-09 09:25:42 -08:00
parent 61ea6faf6c
commit 1e313e339c
No known key found for this signature in database
GPG Key ID: 77183E682AC5FC11
1 changed files with 3 additions and 2 deletions

View File

@ -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)