fix: revert string parsing in configmap to not trim spaces

Signed-off-by: Calum Murray <cmurray@redhat.com>
This commit is contained in:
Calum Murray 2025-07-07 15:04:00 -04:00
parent 3eb1089fec
commit 7f71db5e08
No known key found for this signature in database
GPG Key ID: B67F01AEB13FE187
1 changed files with 1 additions and 2 deletions

View File

@ -19,7 +19,6 @@ package parser
import (
"fmt"
"strconv"
"strings"
"time"
)
@ -72,7 +71,7 @@ func parse[T parseable](s string) (T, error) {
switch any(zero).(type) {
case string:
val = strings.TrimSpace(s)
val = s
case int16:
val, err = strconv.ParseInt(s, 10, 16)
val = int16(val.(int64))