Skip to content

Commit

Permalink
Fixed: typecheck in sumologig-cse
Browse files Browse the repository at this point in the history
  • Loading branch information
thomaspatzke committed Oct 23, 2020
1 parent e30237c commit f0e89b0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/sigma/backends/sumologic.py
Original file line number Diff line number Diff line change
Expand Up @@ -318,7 +318,7 @@ def __init__(self, *args, **kwargs):
self.allowedFieldsList.extend(["metdata_product", "metdata_vendor"])

def cleanValue(self, val, key=''):
if key == 'metadata_deviceEventId' or val.isdigit():
if key == 'metadata_deviceEventId' or isinstance(val, int) or val.isdigit():
return val
return self.valueExpression % val

Expand Down

0 comments on commit f0e89b0

Please sign in to comment.