summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorNarayan Desai <desai@mcs.anl.gov>2008-03-22 20:00:30 +0000
committerNarayan Desai <desai@mcs.anl.gov>2008-03-22 20:00:30 +0000
commitfe850837c15bd9e0d68237ebf8cdbeb8552d4c7a (patch)
treef92d5351a6efc69e44b07b1fd382225a847076cd /src
parentf3d2582759edff694b51109f4673154038236479 (diff)
downloadbcfg2-fe850837c15bd9e0d68237ebf8cdbeb8552d4c7a.tar.gz
bcfg2-fe850837c15bd9e0d68237ebf8cdbeb8552d4c7a.tar.bz2
bcfg2-fe850837c15bd9e0d68237ebf8cdbeb8552d4c7a.zip
Fix race condition (awesome debugging by ritcey)
git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@4438 ce84e21b-d406-0410-9b95-82705330c041
Diffstat (limited to 'src')
-rw-r--r--src/lib/Server/Plugin.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lib/Server/Plugin.py b/src/lib/Server/Plugin.py
index fd07a701e..9e524df1f 100644
--- a/src/lib/Server/Plugin.py
+++ b/src/lib/Server/Plugin.py
@@ -619,8 +619,9 @@ class GroupSpool(Plugin):
if posixpath.isdir(epath):
self.AddDirectoryMonitor(epath[len(self.data):])
if ident not in self.entries:
+ dirpath = "".join([self.data, ident])
self.entries[ident] = self.es_cls(self.filename_pattern,
- epath,
+ dirpath,
self.properties,
self.es_child_cls)
self.Entries['ConfigFile'][ident] = self.entries[ident].bind_entry