Closed DeepMac closed 11 years ago
If the config file specified in a netflow-indexer command doesn't exist, you will not get a clear error message stating that is the issue, which may result in silent failures.
The following patch to netflowindexer/config.py resolves the issue:
@@ -1,10 +1,18 @@ import ConfigParser import datetime +import os.path
from netflowindexer.util import str_to_regex import re
def read_config(fn):
raise IOError("File not found")
+ now = datetime.datetime.now() - datetime.timedelta(minutes=10)
defaults = {
If the config file specified in a netflow-indexer command doesn't exist, you will not get a clear error message stating that is the issue, which may result in silent failures.
The following patch to netflowindexer/config.py resolves the issue:
@@ -1,10 +1,18 @@ import ConfigParser import datetime +import os.path
from netflowindexer.util import str_to_regex import re
def read_config(fn):
+ now = datetime.datetime.now() - datetime.timedelta(minutes=10)
defaults = {