Project

General

Profile

Actions

Bug #2261

closed

'local' config error

Added by Victor Julien almost 7 years ago. Updated over 6 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Target version:
Affected Versions:
Effort:
Difficulty:
Label:

Description

Getting this dump:

3/11/2017 -- 14:01:14 - <Info> -- Done.
Traceback (most recent call last):
  File "/home/victor/dev/suricata-update/bin/suricata-update", line 26, in <module>
    sys.exit(main.main())
  File "/home/victor/dev/suricata-update/suricata/update/main.py", line 1160, in main
    files = load_sources(config, suricata_version)
  File "/home/victor/dev/suricata-update/suricata/update/main.py", line 944, in load_sources
    for local in config.config["local"]:
TypeError: 'NoneType' object is not iterable

For this config:

local:
  # A directory of rules.
  #- /etc/suricata/rules
  # A single rule file.
  #- /etc/suricata/rules/app-layer-events.rules
  # A wildcard.
  #- /etc/suricata/rules/*.rules

It should error/warn more gracefully or ignore it completely.

Actions #1

Updated by Jason Ish almost 7 years ago

  • Status changed from New to Resolved
Actions #2

Updated by Jason Ish almost 7 years ago

  • Status changed from Resolved to Closed
Actions #3

Updated by Jason Ish over 6 years ago

  • Target version set to 1.0.0a1
Actions

Also available in: Atom PDF