#784 Fix bug in sample code.
This commit is contained in:
parent
ed9937bbd8
commit
0abb1154ea
|
@ -80,7 +80,7 @@ func (s *Simple) SampleConfig() string {
|
|||
return "ok = true # indicate if everything is fine"
|
||||
}
|
||||
|
||||
func (s *Simple) Gather(acc inputs.Accumulator) error {
|
||||
func (s *Simple) Gather(acc telegraf.Accumulator) error {
|
||||
if s.Ok {
|
||||
acc.Add("state", "pretty good", nil)
|
||||
} else {
|
||||
|
|
Loading…
Reference in New Issue