Skip to content

Commit

Permalink
fix(confix): correctly distinguish server/v2 config (#22780)
Browse files Browse the repository at this point in the history
  • Loading branch information
kocubinski authored Dec 5, 2024
1 parent abc5fd0 commit 10c5400
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/confix/upgrade.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 10c5400

Please sign in to comment.