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