diff --git a/process/handlers.go b/process/handlers.go index ffeb8b5..48acf0f 100644 --- a/process/handlers.go +++ b/process/handlers.go @@ -10,6 +10,7 @@ import ( u "git.eeqj.de/sneak/goutil" "github.com/flosch/pongo2" "github.com/gin-gonic/gin" + "github.com/google/uuid" "github.com/labstack/echo" ) @@ -94,10 +95,12 @@ func (a *Server) instanceHandler(c echo.Context) error { return c.String(http.StatusNotFound, "404 not found") } - - i := a.feta.manager.ListInstances() { - tc := pongo2.Context{ - "instance": i, + tc := pongo2.Context{} + instances := a.feta.manager.ListInstances() + for _, item := range instances { + if item.UUID == u { + tc["instance"] = item + } } return c.Render(http.StatusOK, "instance.html", tc)