]> git.ipfire.org Git - thirdparty/suricata-update.git/commitdiff
python 3 fix for parsing suricata config output 12/head
authorJason Ish <ish@unx.ca>
Sat, 2 Dec 2017 16:39:35 +0000 (10:39 -0600)
committerJason Ish <ish@unx.ca>
Sat, 2 Dec 2017 16:39:35 +0000 (10:39 -0600)
suricata/update/engine.py

index bc4ef24a09fad99d7fd512671856184fba4d22cd..bffe34cddd86a179366a34fb905660f15cd0daa8 100644 (file)
@@ -72,7 +72,7 @@ class Configuration:
         conf = {}
         for line in configuration_dump.splitlines():
             try:
-                key, val = line.split(" = ")
+                key, val = line.decode().split(" = ")
                 conf[key] = val
             except:
                 logger.warning("Failed to parse: %s", line)