fix writing back the Filename into unusedKeys in ParseConfig (#12615)
This commit is contained in:
parent
f4c1a09e25
commit
8b29493e76
|
@ -526,8 +526,8 @@ func ParseConfig(d, source string) (*Config, error) {
|
|||
result.UnusedKeys = configutil.UnusedFieldDifference(result.UnusedKeys, nil, append(result.FoundKeys, sharedConfig.FoundKeys...))
|
||||
// Assign file info
|
||||
for _, v := range result.UnusedKeys {
|
||||
for _, p := range v {
|
||||
p.Filename = source
|
||||
for i := range v {
|
||||
v[i].Filename = source
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue