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

@ -93,7 +93,7 @@ func newProvider(builder providerBuilder, config map[string]interface{}, provide
}
cfg := &mapstructure.DecoderConfig{
DecodeHook: mapstructure.StringToSliceHookFunc(","),
DecodeHook: stringToSliceHookFunc,
WeaklyTypedInput: true,
Result: vConfig.Interface(),
}