]> git.ipfire.org Git - thirdparty/suricata-update.git/commitdiff
don't see if suricata.yaml if value is None
authorJason Ish <ish@unx.ca>
Sun, 25 Mar 2018 14:27:26 +0000 (08:27 -0600)
committerJason Ish <ish@unx.ca>
Sun, 25 Mar 2018 14:27:26 +0000 (08:27 -0600)
suricata/update/main.py

index 2445046446bccc5e4b9f08967fad2efaef2c6d51..d9f4d77cd998ec4eb9477f713f7243e893d31391 100644 (file)
@@ -1246,7 +1246,8 @@ def _main():
 
     # Load the Suricata configuration if we can.
     suriconf = None
-    if os.path.exists(config.get("suricata-conf")) and \
+    if config.get("suricata-conf") and \
+       os.path.exists(config.get("suricata-conf")) and \
        suricata_path and os.path.exists(suricata_path):
         logger.info("Loading %s",config.get("suricata-conf"))
         suriconf = suricata.update.engine.Configuration.load(