mirror of https://github.com/fail2ban/fail2ban
ENH: dont run samples on filter filenames beginning with .
parent
7e8da15fc6
commit
8e8c80d980
|
@ -151,7 +151,8 @@ def testSampleRegexsFactory(name):
|
|||
|
||||
for filter_ in filter(lambda x: not x.endswith('common.conf'), os.listdir(os.path.join(CONFIG_DIR, "filter.d"))):
|
||||
filterName = filter_.rpartition(".")[0]
|
||||
setattr(
|
||||
FilterSamplesRegex,
|
||||
"testSampleRegexs%s" % filterName.upper(),
|
||||
testSampleRegexsFactory(filterName))
|
||||
if not filterName.startswith('.'):
|
||||
setattr(
|
||||
FilterSamplesRegex,
|
||||
"testSampleRegexs%s" % filterName.upper(),
|
||||
testSampleRegexsFactory(filterName))
|
||||
|
|
Loading…
Reference in New Issue