Skip to content

Commit

Permalink
Fixed issue with none exists tag
Browse files Browse the repository at this point in the history
  • Loading branch information
tsvtitan committed Nov 1, 2023
1 parent 2f3239c commit f539bdc
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions plugins/processors/filter/filter.go
Original file line number Diff line number Diff line change
Expand Up @@ -66,15 +66,10 @@ func (f *Filter) ifCondition(item *FilterIf, metric telegraf.Metric) bool {
if len(tags) == 0 {
return false
}
keys := f.getKeys(tags)

flag := true
for k, v := range item.Tags {

if !utils.Contains(keys, k) {
return false
}

exists := false
value := tags[k]
r := item.tags[k]
Expand Down

0 comments on commit f539bdc

Please sign in to comment.