fix(tools.custom_builder): Ignore non-plugin sections during configuration (#13604)
This commit is contained in:
parent
b20c0d7fad
commit
36906fcee3
|
|
@ -175,6 +175,19 @@ func (s *selection) extractPluginsFromConfig(buf []byte) error {
|
|||
}
|
||||
|
||||
for category, subtbl := range table.Fields {
|
||||
// Check if we should handle the category, i.e. it contains plugins
|
||||
// to configure.
|
||||
var valid bool
|
||||
for _, c := range categories {
|
||||
if c == category {
|
||||
valid = true
|
||||
break
|
||||
}
|
||||
}
|
||||
if !valid {
|
||||
continue
|
||||
}
|
||||
|
||||
categoryTbl, ok := subtbl.(*ast.Table)
|
||||
if !ok {
|
||||
continue
|
||||
|
|
|
|||
Loading…
Reference in New Issue