fixes immutable rule issue (#14849)

fixes #14568

Signed-off-by: Wang Yan <wangyan@vmware.com>
This commit is contained in:
Wang Yan 2021-05-11 23:28:03 +08:00 committed by GitHub
parent 5cd7594a6a
commit b714baae87
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -50,7 +50,7 @@ func (rm *Matcher) Match(ctx context.Context, pid int64, c iselector.Candidate)
// match tag according to the tag selectors
var tagCandidates []*iselector.Candidate
tagSelectors := r.TagSelectors
if len(tagSelectors) < 0 {
if len(tagSelectors) < 1 {
continue
}
tagSelector := r.TagSelectors[0]