Skip to content

Commit

Permalink
Merge pull request #601 from GrigoriyMikhalkin/filter-from-label-fix
Browse files Browse the repository at this point in the history
Fix: in filters exists should be used as operator not match value
  • Loading branch information
hellt authored Aug 31, 2021
2 parents 325c0eb + 0788ab2 commit 356e281
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion types/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ func FilterFromLabelStrings(labels []string) []*GenericFilter {
gf.Field = strings.TrimSpace(subs[0])
gf.Match = strings.TrimSpace(subs[1])
} else {
gf.Match = "exists"
gf.Operator = "exists"
gf.Field = strings.TrimSpace(s)
}

Expand Down

0 comments on commit 356e281

Please sign in to comment.