mirror of
https://github.com/kemko/nomad.git
synced 2026-01-06 02:15:43 +03:00
Don't require slash for node stats
This commit is contained in:
@@ -90,7 +90,7 @@ func (n *Nodes) Stats(nodeID string, q *QueryOptions) (*HostStats, error) {
|
||||
return nil, err
|
||||
}
|
||||
var resp []HostStats
|
||||
if _, err := client.query("/v1/client/stats/", &resp, nil); err != nil {
|
||||
if _, err := client.query("/v1/client/stats", &resp, nil); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
|
||||
@@ -114,7 +114,7 @@ func (s *HTTPServer) registerHandlers(enableDebug bool) {
|
||||
s.mux.HandleFunc("/v1/evaluation/", s.wrap(s.EvalSpecificRequest))
|
||||
|
||||
s.mux.HandleFunc("/v1/client/fs/", s.wrap(s.FsRequest))
|
||||
s.mux.HandleFunc("/v1/client/stats/", s.wrap(s.ClientStatsRequest))
|
||||
s.mux.HandleFunc("/v1/client/stats", s.wrap(s.ClientStatsRequest))
|
||||
s.mux.HandleFunc("/v1/client/allocation/", s.wrap(s.ClientAllocRequest))
|
||||
|
||||
s.mux.HandleFunc("/v1/agent/self", s.wrap(s.AgentSelfRequest))
|
||||
|
||||
Reference in New Issue
Block a user