nit: use labelFilter consistently in filters.go
Some checks are pending
ci / validate (lint) (push) Waiting to run
ci / validate (validate-docs) (push) Waiting to run
ci / validate (validate-go-mod) (push) Waiting to run
ci / validate (validate-headers) (push) Waiting to run
ci / binary (push) Waiting to run
ci / binary-finalize (push) Blocked by required conditions
ci / bin-image-test (push) Waiting to run
ci / test (push) Waiting to run
ci / e2e (plugin, oldstable) (push) Waiting to run
ci / e2e (standalone, oldstable) (push) Waiting to run
ci / e2e (plugin, stable) (push) Waiting to run
ci / e2e (standalone, stable) (push) Waiting to run
ci / coverage (push) Blocked by required conditions
ci / release (push) Blocked by required conditions
merge / bin-image-prepare (push) Waiting to run
merge / bin-image (push) Blocked by required conditions
merge / module-image (push) Waiting to run
merge / desktop-edge-test (push) Blocked by required conditions
Scorecards supply-chain security / Scorecards analysis (push) Waiting to run

Signed-off-by: Nicolas De loof <nicolas.deloof@gmail.com>
This commit is contained in:
Nicolas De loof 2026-05-12 09:21:30 +00:00 committed by Guillaume Lours
parent 5c70712199
commit 659b269e52

View file

@ -18,6 +18,7 @@ package compose
import (
"fmt"
"strconv"
"github.com/moby/moby/client"
@ -46,9 +47,9 @@ func oneOffFilter(b bool) string {
if b {
v = "True"
}
return fmt.Sprintf("%s=%s", api.OneoffLabel, v)
return labelFilter(api.OneoffLabel, v)
}
func containerNumberFilter(index int) string {
return labelFilter(api.ContainerNumberLabel, fmt.Sprintf("%d", index))
return labelFilter(api.ContainerNumberLabel, strconv.Itoa(index))
}