From d1e83353cf993c657c3de7e0fb776b006fd43226 Mon Sep 17 00:00:00 2001 From: Nikolay Edigaryev Date: Thu, 29 Jan 2026 16:04:46 +0100 Subject: [PATCH] Fix off-by-one --- internal/controller/api_vms.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/controller/api_vms.go b/internal/controller/api_vms.go index 2915548..74b68b2 100644 --- a/internal/controller/api_vms.go +++ b/internal/controller/api_vms.go @@ -313,7 +313,7 @@ func (controller *Controller) listVMs(ctx *gin.Context) responder.Responder { filters = append(filters, filter) } - if len(filters) > 0 { + if len(filters) > 1 { return responder.JSON(http.StatusPreconditionFailed, NewErrorResponse("only "+ "a single filter is currently supported")) }