From 659b269e5291dcc3078a4e00804a07d8fa4bea6d Mon Sep 17 00:00:00 2001 From: Nicolas De loof Date: Tue, 12 May 2026 09:21:30 +0000 Subject: [PATCH] nit: use labelFilter consistently in filters.go Signed-off-by: Nicolas De loof --- pkg/compose/filters.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/pkg/compose/filters.go b/pkg/compose/filters.go index 27ecd0311..5a4e245d3 100644 --- a/pkg/compose/filters.go +++ b/pkg/compose/filters.go @@ -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)) }