Ticket #613 (closed defect: fixed)
Migrating from 0.9.5.7 to 0.9.6rc1 broke TCheetah template
Reported by: | Fernando Laudares Camargos <[email protected]…> | Owned by: | desai |
---|---|---|---|
Priority: | major | Milestone: | Bcfg2 0.9.6 Release |
Component: | bcfg2-server | Version: | 0.9.x |
Keywords: | TCheetah | Cc: | desai |
Description
Once I did the upgrade I've got this messages while starting the bcfg2-server:
... Nov 14 04:08:01 bcfg2 bcfg2-server[24420]: Override encoding of template to ascii Nov 14 04:08:01 bcfg2 bcfg2-server[24420]: NotFound?: cannot find 'properties' while searching for 'self.properties' Nov 14 04:08:01 bcfg2 bcfg2-server[24420]: TCheetah template error for /etc/apt/sources.list Nov 14 04:08:01 bcfg2 bcfg2-server[24420]: Failed to bind entry: ConfigFile? /etc/apt/sources.list ...
The following "patch" fixed up this issue: --- /tmp/TCheetah.py 2008-11-14 05:03:48.000000000 -0600 +++ /usr/share/pyshared/Bcfg2/Server/Plugins/TCheetah.py 2008-11-14 04:42:26.000000000 -0600 @@ -26,7 +26,7 @@
self.template = Cheetah.Template.Template(open(self.name).read(),
compilerSettings=s, searchList = [self.searchlist])
- + self.template.properties = self.properties.properties
except Cheetah.Parser.ParseError?, perror:
logger.error("Cheetah parse error for file %s" % (self.name)) logger.error(perror.report())
Although I don't know if it may be applicable to new installations, what has lead me to it was ticket #559.
Regards,
Fernando
Fixed in [1b1eea8aa9de19c018f4eb58e573d4afa3247e31] (SVN r4989). Thanks for the patch.