Fix off-by-one

This commit is contained in:
Nikolay Edigaryev 2026-01-29 16:04:46 +01:00
parent 9984000f32
commit d1e83353cf
1 changed files with 1 additions and 1 deletions

View File

@ -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"))
}