Merge pull request #2793 from hashicorp/b-dereg-acl
Adds token to deregister request when reconciling.
This commit is contained in:
commit
9ed7b7de72
|
@ -548,8 +548,9 @@ func (s *Server) handleDeregisterMember(reason string, member serf.Member) error
|
||||||
// Deregister the node
|
// Deregister the node
|
||||||
s.logger.Printf("[INFO] consul: member '%s' %s, deregistering", member.Name, reason)
|
s.logger.Printf("[INFO] consul: member '%s' %s, deregistering", member.Name, reason)
|
||||||
req := structs.DeregisterRequest{
|
req := structs.DeregisterRequest{
|
||||||
Datacenter: s.config.Datacenter,
|
Datacenter: s.config.Datacenter,
|
||||||
Node: member.Name,
|
Node: member.Name,
|
||||||
|
WriteRequest: structs.WriteRequest{Token: s.config.GetTokenForAgent()},
|
||||||
}
|
}
|
||||||
var out struct{}
|
var out struct{}
|
||||||
return s.endpoints.Catalog.Deregister(&req, &out)
|
return s.endpoints.Catalog.Deregister(&req, &out)
|
||||||
|
|
Loading…
Reference in a new issue