fix(import): Json parser lives outside internal

* Fixed import for JSONFlattener{} it's now in parsers, broke after
  rebasing.
This commit is contained in:
Sergio Jimenez 2016-02-09 23:57:48 +01:00
parent babecb6d49
commit 7170280401
1 changed files with 2 additions and 2 deletions

View File

@ -12,8 +12,8 @@ import (
"sync" "sync"
"github.com/influxdata/telegraf" "github.com/influxdata/telegraf"
"github.com/influxdata/telegraf/internal"
"github.com/influxdata/telegraf/plugins/inputs" "github.com/influxdata/telegraf/plugins/inputs"
jsonparser "github.com/influxdata/telegraf/plugins/parsers/json"
) )
type Mesos struct { type Mesos struct {
@ -299,7 +299,7 @@ func (m *Mesos) gatherMetrics(a string, acc telegraf.Accumulator) error {
m.removeGroup(&jsonOut) m.removeGroup(&jsonOut)
jf := internal.JSONFlattener{} jf := jsonparser.JSONFlattener{}
err = jf.FlattenJSON("", jsonOut) err = jf.FlattenJSON("", jsonOut)