plugin: fix plugin loading

License: MIT
Signed-off-by: default avatarJakub Sztandera <kubuxu@protonmail.ch>
parent b135a1fa
......@@ -56,11 +56,12 @@ func loadPlugin(fi string) ([]iplugin.Plugin, error) {
if err != nil {
return nil, err
}
log.Errorf("plugins: %T", pls)
typePls, ok := pls.([]iplugin.Plugin)
typePls, ok := pls.(*[]iplugin.Plugin)
if !ok {
return nil, errors.New("filed 'Plugins' didn't contain correct type")
}
return typePls, nil
return *typePls, nil
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment