summaryrefslogtreecommitdiffstats
path: root/src/lib/Server/Plugin.py
diff options
context:
space:
mode:
authorNarayan Desai <desai@mcs.anl.gov>2009-07-16 16:25:59 +0000
committerNarayan Desai <desai@mcs.anl.gov>2009-07-16 16:25:59 +0000
commit0b4840afa99b1b093c8139dc8f7c19b1140e218f (patch)
tree41e51166c2547fe27b78e1c89d39888d44afdfc1 /src/lib/Server/Plugin.py
parent0a622fb2e20470f368c16e814e15945d9767fa98 (diff)
downloadbcfg2-0b4840afa99b1b093c8139dc8f7c19b1140e218f.tar.gz
bcfg2-0b4840afa99b1b093c8139dc8f7c19b1140e218f.tar.bz2
bcfg2-0b4840afa99b1b093c8139dc8f7c19b1140e218f.zip
Fix FileBacked class to catch created files again
git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5342 ce84e21b-d406-0410-9b95-82705330c041
Diffstat (limited to 'src/lib/Server/Plugin.py')
-rw-r--r--src/lib/Server/Plugin.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/Server/Plugin.py b/src/lib/Server/Plugin.py
index ff6eb9f22..5289dad56 100644
--- a/src/lib/Server/Plugin.py
+++ b/src/lib/Server/Plugin.py
@@ -194,7 +194,7 @@ class FileBacked(object):
def HandleEvent(self, event=None):
'''Read file upon update'''
- if event and event.code2str() not in ['exists', 'changed']:
+ if event and event.code2str() not in ['exists', 'changed', 'created']:
return
try:
self.data = file(self.name).read()