summaryrefslogtreecommitdiffstats
path: root/src/lib
diff options
context:
space:
mode:
authorRobert Gogolok <gogo@cs.uni-sb.de>2007-06-08 14:24:47 +0000
committerRobert Gogolok <gogo@cs.uni-sb.de>2007-06-08 14:24:47 +0000
commitdd664ce0cf20fb094478a7c1c171ebc016c4972b (patch)
tree92866aa1a661f8e5278f0834e23ff59607e1c6a2 /src/lib
parent61d665f56b96845326353cbd969ccf03fb5f501d (diff)
downloadbcfg2-dd664ce0cf20fb094478a7c1c171ebc016c4972b.tar.gz
bcfg2-dd664ce0cf20fb094478a7c1c171ebc016c4972b.tar.bz2
bcfg2-dd664ce0cf20fb094478a7c1c171ebc016c4972b.zip
gamin: don't crash on evebn GAMMoved
git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@3270 ce84e21b-d406-0410-9b95-82705330c041
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/Server/Core.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/Server/Core.py b/src/lib/Server/Core.py
index 3642ed083..4a3a09620 100644
--- a/src/lib/Server/Core.py
+++ b/src/lib/Server/Core.py
@@ -103,7 +103,7 @@ class GaminEvent(object):
'''This class provides an event analogous to python-fam events based on gamin sources'''
def __init__(self, request_id, filename, code):
action_map = {GAMCreated: 'created', GAMExists: 'exists', GAMChanged: 'changed',
- GAMDeleted: 'deleted', GAMEndExist: 'endExist'}
+ GAMDeleted: 'deleted', GAMEndExist: 'endExist', GAMMoved: 'moved'}
self.requestID = request_id
self.filename = filename
if action_map.has_key(code):
@@ -185,7 +185,7 @@ class GaminFam(object):
return count
try:
- from gamin import WatchMonitor, GAMCreated, GAMExists, GAMEndExist, GAMChanged, GAMDeleted
+ from gamin import WatchMonitor, GAMCreated, GAMExists, GAMEndExist, GAMChanged, GAMDeleted, GAMMoved
monitor = GaminFam
except ImportError:
# fall back to _fam