Skip to content

Commit

Permalink
Fix issue where TF topics are not included
Browse files Browse the repository at this point in the history
This issue arises when tf: tag is not specified in the config.
  • Loading branch information
Naoki Mizuno committed Feb 8, 2018
1 parent 34dbe56 commit a9b1786
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions scripts/filter.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,9 @@ def get_topics(rules, bag_topics):
topics = set()
sample_set = set(bag_topics)

if FilterRule.DEFAULT_ENFORCEMENT_TF == FilterRule.INCLUDE:
topics = topics.union(TF_TOPICS)

for r in rules:
if r.is_topic():
if r.is_include():
Expand Down

0 comments on commit a9b1786

Please sign in to comment.