fix(confix): correctly distinguish server/v2 config (#22780)

This commit is contained in:
Matt Kocubinski 2024-12-05 16:47:32 -06:00 committed by GitHub
parent abc5fd0226
commit 10c54005be
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -44,7 +44,7 @@ func Upgrade(ctx context.Context, plan transform.Plan, doc *tomledit.Document, c
}
// ignore validation for serverv2 by checking any default field found in doc
isServerV2 := doc.First(strings.Split("store.options.ss-pruning-option", ".")...) != nil
isServerV2 := doc.First(strings.Split("store.options.sc-pruning-option", ".")...) != nil
// allow to skip validation
if !skipValidate && !isServerV2 {