summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/lib/Bcfg2/Server/FileMonitor/Inotify.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/lib/Bcfg2/Server/FileMonitor/Inotify.py b/src/lib/Bcfg2/Server/FileMonitor/Inotify.py
index 8a311c8c6..178a47b1a 100644
--- a/src/lib/Bcfg2/Server/FileMonitor/Inotify.py
+++ b/src/lib/Bcfg2/Server/FileMonitor/Inotify.py
@@ -110,6 +110,13 @@ class Inotify(Pseudo, pyinotify.ProcessEvent):
if ievent.mask & amask:
action = aname
break
+ else:
+ # event action is not in the mask, and thus is not
+ # something we care about
+ self.debug_log("Ignoring event %s for %s" % (action,
+ ievent.pathname))
+ return
+
try:
watch = self.watchmgr.watches[ievent.wd]
except KeyError: