- Removed MAIL for getSections()

git-svn-id: https://fail2ban.svn.sourceforge.net/svnroot/fail2ban/branches/FAIL2BAN-0_5@130 a942ae1a-1317-0410-a47c-b1dcaea8d605
0.5
Cyril Jaquier 2005-07-12 13:07:35 +00:00
parent 6ae8556d15
commit 8a94f873de
1 changed files with 5 additions and 2 deletions

View File

@ -48,9 +48,12 @@ class ConfigReader:
def getSections(self):
""" Returns all the sections present in the configuration
file except the DEFAULT section.
file except the DEFAULT and MAIL sections.
"""
return self.configParser.sections()
sections = self.configParser.sections()
sections.remove("MAIL")
logSys.debug("Found sections: " + `sections`)
return sections
# Each optionValues entry is composed of an array with:
# 0 -> the type of the option