diff --git a/boswatch.py b/boswatch.py index f273f2e..96c6b0c 100755 --- a/boswatch.py +++ b/boswatch.py @@ -281,8 +281,8 @@ try: # try: if globals.config.getboolean("BOSWatch","useRegExFilter"): - from includes import filter - filter.loadFilters() + from includes import regexFilter + regexFilter.loadFilters() except: # It's an error, but we could work without that stuff... logging.error("cannot load filters") diff --git a/includes/alarmHandler.py b/includes/alarmHandler.py index b0ededf..464fcd4 100644 --- a/includes/alarmHandler.py +++ b/includes/alarmHandler.py @@ -77,8 +77,8 @@ def processAlarm(typ, freq, data): for pluginName, plugin in globals.pluginList.items(): # if enabled use RegEx-filter if globals.config.getint("BOSWatch","useRegExFilter"): - from includes import filter - if filter.checkFilters(typ, data, pluginName, freq): + from includes import regexFilter + if regexFilter.checkFilters(typ, data, pluginName, freq): logging.debug("call Plugin: %s", pluginName) try: plugin.run(typ, freq, data) diff --git a/includes/filter.py b/includes/regexFilter.py similarity index 100% rename from includes/filter.py rename to includes/regexFilter.py