From f1c67b9fede53e44a7addd9bf542361b2bc236c0 Mon Sep 17 00:00:00 2001 From: Jack Naglieri Date: Thu, 6 Apr 2017 11:15:58 -0700 Subject: [PATCH] [pr] feedback from #96 --- stream_alert/rule_processor/parsers.py | 2 +- test/unit/test_classifier.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/stream_alert/rule_processor/parsers.py b/stream_alert/rule_processor/parsers.py index 5f6f01d14..ddb607bed 100644 --- a/stream_alert/rule_processor/parsers.py +++ b/stream_alert/rule_processor/parsers.py @@ -180,7 +180,7 @@ def default_optional_values(key): json_payload[key_name] = default_optional_values(value_type) # Handle jsonpath extraction of records - if config_options and len(config_options) and records_schema: + if config_options and records_schema: records_jsonpath = jsonpath_rw.parse(records_schema) if len(envelope_schema): self.schema.update({'envelope': envelope_schema}) diff --git a/test/unit/test_classifier.py b/test/unit/test_classifier.py index 27423569a..49e34c861 100644 --- a/test/unit/test_classifier.py +++ b/test/unit/test_classifier.py @@ -52,7 +52,7 @@ def make_kinesis_record(**kwargs): .format(kinesis_stream), 'kinesis': { 'data': base64.b64encode(kinesis_data) - } + } } return raw_record