Skip to content

Commit 9960076

Browse files
kizuna-lekapecloud-bot
authored andcommitted
fix: redis config get string with quote (#10030)
(cherry picked from commit a25b360)
1 parent b9efbf4 commit 9960076

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/unstructured/redis_config.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ func (r *redisConfig) GetString(key string) (string, error) {
124124
res := make([]string, 0)
125125
for i := len(keys); i < len(item.Values); i++ {
126126
v := item.Values[i]
127-
if ContainerEscapeString(v) {
127+
if v == "" || ContainerEscapeString(v) {
128128
res = append(res, strconv.Quote(v))
129129
} else {
130130
res = append(res, v)

0 commit comments

Comments
 (0)