diff options
author | Sol Jerome <solj@ices.utexas.edu> | 2009-11-19 05:13:45 +0000 |
---|---|---|
committer | Sol Jerome <solj@ices.utexas.edu> | 2009-11-19 05:13:45 +0000 |
commit | 18f8668b60cea58fa26ae96c81e201e321547e1a (patch) | |
tree | 5390b7af66285b06f525d7f4916d33627258c064 /src/lib/Server | |
parent | c3b6a55559e02faa51a4bbdf0d78488cdd61e61d (diff) | |
download | bcfg2-18f8668b60cea58fa26ae96c81e201e321547e1a.tar.gz bcfg2-18f8668b60cea58fa26ae96c81e201e321547e1a.tar.bz2 bcfg2-18f8668b60cea58fa26ae96c81e201e321547e1a.zip |
Plugin.py: Fix Cfg conflicts (Reported by Thorsten Lockert on irc)
Since a Path can now be a file/directory/other type, we need to make
sure that we only bind files for Cfg entries.
Signed-off-by: Sol Jerome <solj@ices.utexas.edu>
git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5581 ce84e21b-d406-0410-9b95-82705330c041
Diffstat (limited to 'src/lib/Server')
-rw-r--r-- | src/lib/Server/Plugin.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/Server/Plugin.py b/src/lib/Server/Plugin.py index d5275293a..2b8b30f5c 100644 --- a/src/lib/Server/Plugin.py +++ b/src/lib/Server/Plugin.py @@ -733,7 +733,7 @@ class GroupSpool(Plugin, Generator): if action in ['exists', 'created']: if posixpath.isdir(epath): self.AddDirectoryMonitor(epath[len(self.data):]) - if ident not in self.entries: + if ident not in self.entries and posixpath.isfile(epath): dirpath = "".join([self.data, ident]) self.entries[ident] = self.es_cls(self.filename_pattern, dirpath, |