Go FMT missing...
This commit is contained in:
parent
e7ca9113bc
commit
abdef7c326
3
agent.go
3
agent.go
|
@ -114,9 +114,8 @@ func (a *Agent) LoadPlugins(pluginsFilter string) ([]string, error) {
|
|||
return nil, fmt.Errorf("Undefined but requested plugin: %s", name)
|
||||
}
|
||||
|
||||
|
||||
isPluginEnabled := false
|
||||
if len(filters)>0 {
|
||||
if len(filters) > 0 {
|
||||
for _, runeValue := range filters {
|
||||
if runeValue != "" && strings.ToLower(runeValue) == strings.ToLower(name) {
|
||||
fmt.Printf("plugin [%s] is enabled (filter options)\n", name)
|
||||
|
|
|
@ -1,10 +1,10 @@
|
|||
package telegraf
|
||||
|
||||
import (
|
||||
"testing"
|
||||
"github.com/stretchr/testify/assert"
|
||||
"testing"
|
||||
|
||||
// needing to load the plugins
|
||||
// needing to load the plugins
|
||||
_ "github.com/influxdb/telegraf/plugins/all"
|
||||
)
|
||||
|
||||
|
@ -100,4 +100,4 @@ func TestAgent_AppliesTags(t *testing.T) {
|
|||
err := a.crank()
|
||||
require.NoError(t, err)
|
||||
}
|
||||
*/
|
||||
*/
|
||||
|
|
Loading…
Reference in New Issue