From: Jason Ish Date: Mon, 11 Feb 2019 17:19:53 +0000 (-0600) Subject: rules: default rev to 0 for rules without a rev X-Git-Tag: 1.1.0rc1~34 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c2fa41e433f8367036fddf30f55bdfd164a29c2d;p=thirdparty%2Fsuricata-update.git rules: default rev to 0 for rules without a rev Comparisons between none types in Python 2 were allowed, Python 3 throws an exception here causing rules without a rev to break suricata-update. --- diff --git a/suricata/update/rule.py b/suricata/update/rule.py index 8444e90..91df0c8 100644 --- a/suricata/update/rule.py +++ b/suricata/update/rule.py @@ -97,7 +97,7 @@ class Rule(dict): self["group"] = group self["gid"] = 1 self["sid"] = None - self["rev"] = None + self["rev"] = 0 self["msg"] = None self["flowbits"] = [] self["metadata"] = []