Fix slice parsing for plugins
This commit is contained in:
parent
16d7b89cb1
commit
b6bfa905db
4 changed files with 86 additions and 2 deletions
|
@ -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(),
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue