From 3e6c4a53a484fa8a52ca5d962d5b398565199c61 Mon Sep 17 00:00:00 2001 From: David Norton Date: Mon, 12 Dec 2016 12:07:26 -0500 Subject: [PATCH] fix plugin namespacing --- cmd/telegraf/telegraf.go | 1 + 1 file changed, 1 insertion(+) diff --git a/cmd/telegraf/telegraf.go b/cmd/telegraf/telegraf.go index 45f581612..dec155d12 100644 --- a/cmd/telegraf/telegraf.go +++ b/cmd/telegraf/telegraf.go @@ -354,6 +354,7 @@ func registerPlugin(pluginsDir, filePath string, p *plugin.Plugin) error { // structure. E.g., if the root plugin directory, passed in the pluginsDir // argument, is '/home/jdoe/bin/telegraf/plugins' and we're registering plugin // '/home/jdoe/bin/telegraf/plugins/input/mysql.so' + pluginsDir = filepath.Clean(pluginsDir) parentDir, _ := filepath.Split(pluginsDir) var err error if filePath, err = filepath.Rel(parentDir, filePath); err != nil {