Fix off-by-one
This commit is contained in:
parent
9984000f32
commit
d1e83353cf
|
|
@ -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"))
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue