summaryrefslogtreecommitdiffstats
path: root/src/lib/Bcfg2/Server/FileMonitor/Inotify.py
diff options
context:
space:
mode:
authorChris St. Pierre <chris.a.st.pierre@gmail.com>2012-09-05 13:45:24 -0400
committerChris St. Pierre <chris.a.st.pierre@gmail.com>2012-09-05 13:45:24 -0400
commit84e8fc36c4d8524c8094daf31955dce8c0a624ea (patch)
treec50a0c1fd48d9f8df7c7e27b5cd8ba4449e9890b /src/lib/Bcfg2/Server/FileMonitor/Inotify.py
parent3f7a5c489ada79121065e3835008d5ba60038b3d (diff)
downloadbcfg2-84e8fc36c4d8524c8094daf31955dce8c0a624ea.tar.gz
bcfg2-84e8fc36c4d8524c8094daf31955dce8c0a624ea.tar.bz2
bcfg2-84e8fc36c4d8524c8094daf31955dce8c0a624ea.zip
fixed FileMonitor stringification
Diffstat (limited to 'src/lib/Bcfg2/Server/FileMonitor/Inotify.py')
-rw-r--r--src/lib/Bcfg2/Server/FileMonitor/Inotify.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/lib/Bcfg2/Server/FileMonitor/Inotify.py b/src/lib/Bcfg2/Server/FileMonitor/Inotify.py
index e4948ea8d..097fc0b42 100644
--- a/src/lib/Bcfg2/Server/FileMonitor/Inotify.py
+++ b/src/lib/Bcfg2/Server/FileMonitor/Inotify.py
@@ -40,7 +40,10 @@ class Inotify(Pseudo, pyinotify.ProcessEvent):
self.add_q = []
def fileno(self):
- return self.wm.get_fd()
+ if self.started:
+ return self.wm.get_fd()
+ else:
+ return None
def process_default(self, ievent):
action = ievent.maskname