mirror of https://github.com/fail2ban/fail2ban
- Removed MAIL for getSections()
git-svn-id: https://fail2ban.svn.sourceforge.net/svnroot/fail2ban/branches/FAIL2BAN-0_5@130 a942ae1a-1317-0410-a47c-b1dcaea8d6050.5
parent
6ae8556d15
commit
8a94f873de
|
@ -48,9 +48,12 @@ class ConfigReader:
|
||||||
|
|
||||||
def getSections(self):
|
def getSections(self):
|
||||||
""" Returns all the sections present in the configuration
|
""" 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:
|
# Each optionValues entry is composed of an array with:
|
||||||
# 0 -> the type of the option
|
# 0 -> the type of the option
|
||||||
|
|
Loading…
Reference in New Issue