diff options
author | Narayan Desai <desai@mcs.anl.gov> | 2005-12-01 21:40:48 +0000 |
---|---|---|
committer | Narayan Desai <desai@mcs.anl.gov> | 2005-12-01 21:40:48 +0000 |
commit | 714458fd079343ac9698436d3c7fcc4203b7d41f (patch) | |
tree | 0a6a9b8d69851f6a2276620ca5be74c2a3db36a0 /src/lib/Server/Plugin.py | |
parent | f2d1d3c9136bf5b2bee71fa2678281c989bec620 (diff) | |
download | bcfg2-714458fd079343ac9698436d3c7fcc4203b7d41f.tar.gz bcfg2-714458fd079343ac9698436d3c7fcc4203b7d41f.tar.bz2 bcfg2-714458fd079343ac9698436d3c7fcc4203b7d41f.zip |
change to event coalescing
git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@1605 ce84e21b-d406-0410-9b95-82705330c041
Diffstat (limited to 'src/lib/Server/Plugin.py')
-rw-r--r-- | src/lib/Server/Plugin.py | 15 |
1 files changed, 5 insertions, 10 deletions
diff --git a/src/lib/Server/Plugin.py b/src/lib/Server/Plugin.py index d7c72a357..72052e7ac 100644 --- a/src/lib/Server/Plugin.py +++ b/src/lib/Server/Plugin.py @@ -77,17 +77,12 @@ class FileBacked(object): except OSError: syslog(LOG_ERR, "Failed to stat file %s" % (self.name)) - if self.mtime > oldmtime: - try: - # if self.readonce == 0: - # self.readonce = 1 - # else: - # syslog(LOG_INFO, "Updated file %s" % (self.name)) - self.data = file(self.name).read() - except IOError: - syslog(LOG_ERR, "Failed to read file %s" % (self.name)) + try: + self.data = file(self.name).read() self.Index() - + except IOError: + syslog(LOG_ERR, "Failed to read file %s" % (self.name)) + def Index(self): '''Update local data structures based on current file state''' pass |