Skip to content

Commit

Permalink
Make grep task exit with success when no filters are supplied (#551)
Browse files Browse the repository at this point in the history
* Make grep task exit with success when no filters are supplied

* yapf
  • Loading branch information
aarontp committed Jun 24, 2020
1 parent d65b8e6 commit e27af6f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions turbinia/workers/grep.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,7 @@ def run(self, evidence, result):

patterns = evidence.config.get('filter_patterns')
if not patterns:
result.close(
self, success=False, status='No patterns supplied, exit task')
result.close(self, success=True, status='No patterns supplied, exit task')
return result

# Create temporary file to write patterns to.
Expand Down

0 comments on commit e27af6f

Please sign in to comment.