From 79c778a2bf005b8d3e9dea9e70da57a0d04ea22c Mon Sep 17 00:00:00 2001 From: Marcos Lilljedahl Date: Mon, 26 Feb 2018 21:35:01 -0300 Subject: [PATCH] Fix Max instance validation --- handlers/new_instance.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/handlers/new_instance.go b/handlers/new_instance.go index 266a79b..06c4a66 100644 --- a/handlers/new_instance.go +++ b/handlers/new_instance.go @@ -46,7 +46,7 @@ func NewInstance(rw http.ResponseWriter, req *http.Request) { return } - if playground.MaxInstances > 0 && len(instances) > playground.MaxInstances { + if playground.MaxInstances > 0 && len(instances) >= playground.MaxInstances { log.Println(err) rw.WriteHeader(http.StatusConflict) return