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)
|
return nil, fmt.Errorf("Undefined but requested plugin: %s", name)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
isPluginEnabled := false
|
isPluginEnabled := false
|
||||||
if len(filters)>0 {
|
if len(filters) > 0 {
|
||||||
for _, runeValue := range filters {
|
for _, runeValue := range filters {
|
||||||
if runeValue != "" && strings.ToLower(runeValue) == strings.ToLower(name) {
|
if runeValue != "" && strings.ToLower(runeValue) == strings.ToLower(name) {
|
||||||
fmt.Printf("plugin [%s] is enabled (filter options)\n", name)
|
fmt.Printf("plugin [%s] is enabled (filter options)\n", name)
|
||||||
|
|
|
@ -1,10 +1,10 @@
|
||||||
package telegraf
|
package telegraf
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"testing"
|
|
||||||
"github.com/stretchr/testify/assert"
|
"github.com/stretchr/testify/assert"
|
||||||
|
"testing"
|
||||||
|
|
||||||
// needing to load the plugins
|
// needing to load the plugins
|
||||||
_ "github.com/influxdb/telegraf/plugins/all"
|
_ "github.com/influxdb/telegraf/plugins/all"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue