Fix slice parsing for plugins

This commit is contained in:
Ludovic Fernandez 2022-03-28 15:24:08 +02:00 committed by GitHub
parent 16d7b89cb1
commit b6bfa905db
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 86 additions and 2 deletions

View file

@ -86,7 +86,7 @@ func (p middlewareBuilder) createConfig(config map[string]interface{}) (reflect.
vConfig := results[0]
cfg := &mapstructure.DecoderConfig{
DecodeHook: mapstructure.StringToSliceHookFunc(","),
DecodeHook: stringToSliceHookFunc,
WeaklyTypedInput: true,
Result: vConfig.Interface(),
}