mirror of
https://github.com/kemko/nomad.git
synced 2026-01-06 10:25:42 +03:00
fix enterprise endpoint registration (#15446)
In #15430 we refactored the RPC endpoint configuration to make adding the RPC context easier. But when implementing the change on the Enterprise side, I discovered that the registration of enterprise endpoints was being done incorrectly -- this doesn't show up on OSS because the registration is always a no-op here.
This commit is contained in:
@@ -1282,7 +1282,8 @@ func (s *Server) setupRpcServer(server *rpc.Server, ctx *RPCContext) error {
|
||||
_ = server.Register(NewSystemEndpoint(s, ctx))
|
||||
_ = server.Register(NewVariablesEndpoint(s, ctx, s.encrypter))
|
||||
|
||||
_ = server.Register(NewEnterpriseEndpoints(s, ctx))
|
||||
ent := NewEnterpriseEndpoints(s, ctx)
|
||||
ent.Register(server)
|
||||
|
||||
return nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user