Skip to content

Commit

Permalink
add default parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
eric-forte-elastic committed Oct 30, 2023
1 parent 62bb32f commit 49fb9f3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions eql/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,11 +90,11 @@ def get_ipaddress(ipaddr_string):
return ipaddress.ip_address(ipaddr_string)


def get_subnet(cidr_string):
def get_subnet(cidr_string, strict=False):
"""Get an ipaddress ip_network object from a string containing an cidr range."""
if py_version == 2:
cidr_string = cidr_string.decode("utf-8") # noqa: F821
return ipaddress.ip_network(cidr_string, strict=False)
return ipaddress.ip_network(cidr_string, strict=strict)


def get_type_converter(items):
Expand Down

0 comments on commit 49fb9f3

Please sign in to comment.