Change pass/drop to namepass/namedrop for outputs

closes #730
This commit is contained in:
Cameron Sparr
2016-02-22 13:35:06 -07:00
parent d00550c45f
commit 5aef725c13
5 changed files with 15 additions and 7 deletions

View File

@@ -28,7 +28,7 @@ type Filter struct {
}
func (f Filter) ShouldMetricPass(metric telegraf.Metric) bool {
if f.ShouldFieldsPass(metric.Name()) && f.ShouldTagsPass(metric.Tags()) {
if f.ShouldNamePass(metric.Name()) && f.ShouldTagsPass(metric.Tags()) {
return true
}
return false