diff --git a/plugin/loader/load_linux.go b/plugin/loader/load_linux.go index d74c91bf6..98f0e5ec4 100644 --- a/plugin/loader/load_linux.go +++ b/plugin/loader/load_linux.go @@ -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 }