plugins: allow empty config
This commit is contained in:
parent
8ddc37d528
commit
d06573de6c
2 changed files with 3 additions and 5 deletions
|
@ -84,6 +84,9 @@ func (p middlewareBuilder) createConfig(config map[string]interface{}) (reflect.
|
|||
}
|
||||
|
||||
vConfig := results[0]
|
||||
if len(config) == 0 {
|
||||
return vConfig, nil
|
||||
}
|
||||
|
||||
cfg := &mapstructure.DecoderConfig{
|
||||
DecodeHook: mapstructure.StringToSliceHookFunc(","),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue