Skip to content

Commit

Permalink
Fix boolean parsing
Browse files Browse the repository at this point in the history
  • Loading branch information
elnappo committed Nov 13, 2018
1 parent 32f95ca commit a0f215f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion brologparse.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ def _bro_types_mapping(separator_set):
"addr": ip_address,
"port": int,
"count": int,
"bool": bool,
"bool": lambda value: True if value == "T" else False if value == "F" else None,
"enum": str,
"interval": float,
"vector[string]": str,
Expand Down

0 comments on commit a0f215f

Please sign in to comment.