diff options
author | Narayan Desai <desai@mcs.anl.gov> | 2004-11-01 19:39:12 +0000 |
---|---|---|
committer | Narayan Desai <desai@mcs.anl.gov> | 2004-11-01 19:39:12 +0000 |
commit | 4e3d1eaa1aabb12d3c308d5637e0c1ef994723fc (patch) | |
tree | 1b42d15fb76b592c1f52e7db81a5f52975a38eb8 /src/lib/Server/Generators | |
parent | a88287c17ca88c3972086dd50d769903f139f9f9 (diff) | |
download | bcfg2-4e3d1eaa1aabb12d3c308d5637e0c1ef994723fc.tar.gz bcfg2-4e3d1eaa1aabb12d3c308d5637e0c1ef994723fc.tar.bz2 bcfg2-4e3d1eaa1aabb12d3c308d5637e0c1ef994723fc.zip |
this should fix post-initial file creates
(Logical change 1.137)
git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@623 ce84e21b-d406-0410-9b95-82705330c041
Diffstat (limited to 'src/lib/Server/Generators')
-rw-r--r-- | src/lib/Server/Generators/Cfg.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/lib/Server/Generators/Cfg.py b/src/lib/Server/Generators/Cfg.py index f3b6f964a..43446af1d 100644 --- a/src/lib/Server/Generators/Cfg.py +++ b/src/lib/Server/Generators/Cfg.py @@ -204,7 +204,10 @@ class ConfigFileRepository(DirectoryBacked): if self.entries.has_key(configfile): self.entries[configfile].HandleEvent(event) else: - syslog(LOG_INFO, "Ignoring event for %s"%(configfile)) + if filename != self.name: + self.AddEntry(filename) + else: + syslog(LOG_INFO, "Ignoring event for %s"%(configfile)) elif action == 'deleted': configfile = filename[len(self.name):-(len(event.filename)+1)] self.entries[configfile].HandleEvent(event) |