From e27af6fe9ddef08b87ffffd10957d21af153bb23 Mon Sep 17 00:00:00 2001 From: Aaron Peterson Date: Wed, 17 Jun 2020 15:35:25 -0700 Subject: [PATCH] Make grep task exit with success when no filters are supplied (#551) * Make grep task exit with success when no filters are supplied * yapf --- turbinia/workers/grep.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/turbinia/workers/grep.py b/turbinia/workers/grep.py index f462389fa..770ddd940 100644 --- a/turbinia/workers/grep.py +++ b/turbinia/workers/grep.py @@ -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.