Modify

Ticket #613 (closed defect: fixed)

Opened 14 years ago

Last modified 14 years ago

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

Attachments

Change History

comment:1 Changed 14 years ago by desai

  • Status changed from new to closed
  • Resolution set to fixed

Fixed in [1b1eea8aa9de19c018f4eb58e573d4afa3247e31] (SVN r4989). Thanks for the patch.

WARNING! You need to establish a session before you can create or edit tickets. Otherwise the ticket will get treated as spam.

View

Add a comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
The resolution will be deleted. Next status will be 'reopened'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.