On Wed, Feb 23, 2011 at 02:07:12PM +0100, Léon Keijser wrote: > On Wed, 2011-02-23 at 10:05 +0000, Christian Horn wrote: > > > > current RHEL6 x86_64 with a cobbler 2.0.10 from epel, > > has someone successfully used cobbler including templates using > > snippets on that? > > > > As soon as i try to include snippets in the template i get this, > > without good ideas for debugging: > > > > ---------------- > > # *** ERROR *** > > # > > # There is a templating error preventing this file from rendering > > correctly. > > # > > # This is most likely not due to a bug in Cobbler and is something you can > > fix. > > # > > # Look at the message below to see what things are causing problems. > > # > > # (1) Does the template file reference a $variable that is not defined? > > # (2) is there a formatting error in a Cheetah directive? > > # (3) Should dollar signs ($) be escaped that are not being escaped? > > # > > # Try fixing the problem and then investigate to see if this message goes > > # away or changes. > > # > > # > > # SNIPPET() takes exactly 2 arguments (3 given) > > # File "/usr/lib/python2.6/site-packages/cobbler/templar.py", line 141, > > in render > > # data_out = t.respond() > > # > > # File > > "cheetah_DynamicallyCompiledCheetahTemplate_1298452891_24_21286.py", line > > 144, in respond > > # > > # File > > "cheetah_DynamicallyCompiledCheetahTemplate_1298452891_24_21286.py", line > > 81, in __errorCatcher3 > > # > > # File "<string>", line 1, in <module> > > # > > ---------------- > > > > - someone having seen this? > > Yes i have, although on my F14 host. IIRC it's fixed in 2.0.10 though, > so that's odd .. > > You could try this quick workaround: > https://fedorahosted.org/pipermail/cobbler/2010-October/005940.html
Thanks for pushing me into this direction. The file is in package python-cheetah which belongs to RHEL, yet i didnt find code there matching to the commit you mentioned. Tried building cobbler-2.0.10 for myself, didnt change anything. Selfbuild 2.0.9 seems to work thou, will stick with that for now. Christian _______________________________________________ cobbler mailing list [email protected] https://fedorahosted.org/mailman/listinfo/cobbler
