From 479db2904f3f485bf27935fb804d59b8fc173eac Mon Sep 17 00:00:00 2001 From: Victor Vieux Date: Tue, 27 Oct 2015 20:40:13 -0700 Subject: [PATCH] fix network inspect via name for global scope Signed-off-by: Victor Vieux --- api/handlers.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/handlers.go b/api/handlers.go index 55c2bf5142..f102049c13 100644 --- a/api/handlers.go +++ b/api/handlers.go @@ -741,7 +741,7 @@ func ping(c *context, w http.ResponseWriter, r *http.Request) { // Proxy a request to the right node func proxyNetwork(c *context, w http.ResponseWriter, r *http.Request) { var id = mux.Vars(r)["networkid"] - if network := c.cluster.Networks().Get(id); network != nil { + if network := c.cluster.Networks().Uniq().Get(id); network != nil { // Set the network ID in the proxied URL path. r.URL.Path = strings.Replace(r.URL.Path, id, network.ID, 1)