commit | 4b7bafdfddd90b9fad931a5593f36f23477d5e5a | [log] [tgz] |
---|---|---|
author | David Bainbridge <dbainbri@ciena.com> | Thu Dec 12 19:47:47 2019 +0000 |
committer | David Bainbridge <dbainbri@ciena.com> | Thu Dec 12 19:47:47 2019 +0000 |
tree | c34cfeded1e9f54027826c7bfea5ce38a354c22c | |
parent | f658906c5b03c2ea87318d050b4bfd1ea21ed4b7 [diff] |
VOL-2359 - add NE option Change-Id: Id921cc4dd7899a362ce54c659d1454994676c8d3
diff --git a/pkg/filter/filter.go b/pkg/filter/filter.go index 4ced633..d78a21a 100644 --- a/pkg/filter/filter.go +++ b/pkg/filter/filter.go
@@ -132,6 +132,11 @@ if fmt.Sprintf("%v", field) != v.Value { return false } + case NE: + // This seems to work for most comparisons + if fmt.Sprintf("%v", field) == v.Value { + return false + } default: // For unsupported operations, always pass }