From 8152609f691bcc3cf5a1a670d77158a6952cfaea Mon Sep 17 00:00:00 2001 From: Bryan Frimin Date: Fri, 6 Mar 2026 09:43:03 +0100 Subject: [PATCH] Fix int parsing Signed-off-by: Bryan Frimin --- pkg/bootstrap/builder.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/bootstrap/builder.go b/pkg/bootstrap/builder.go index 4c95beb32..c54c27623 100644 --- a/pkg/bootstrap/builder.go +++ b/pkg/bootstrap/builder.go @@ -288,8 +288,8 @@ func (b *Builder) getEnvOrDefault(key, defaultValue string) string { func (b *Builder) getEnvIntOrDefault(key string, defaultValue int) int { if value := b.getEnv(key); value != "" { - if intValue, err := strconv.Atoi(value); err == nil { - return intValue + if intValue, err := strconv.ParseInt(value, 10, 32); err == nil { + return int(intValue) } } return defaultValue