From 8a94f873deecc06215cd6f05f6bd6ec83ae9d243 Mon Sep 17 00:00:00 2001 From: Cyril Jaquier Date: Tue, 12 Jul 2005 13:07:35 +0000 Subject: [PATCH] - Removed MAIL for getSections() git-svn-id: https://fail2ban.svn.sourceforge.net/svnroot/fail2ban/branches/FAIL2BAN-0_5@130 a942ae1a-1317-0410-a47c-b1dcaea8d605 --- confreader/configreader.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/confreader/configreader.py b/confreader/configreader.py index a1227055..981292ec 100644 --- a/confreader/configreader.py +++ b/confreader/configreader.py @@ -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