I have a cobbler instance that is throwing out exceptions trying to
output
a
system kickstart that includes a single snippet. Anyone have any ideas
why
this would occur? The cheetah lib installed is 2.4.3.
# *** 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 (1 given)
# File "/usr/lib/python2.6/site-packages/cobbler/templar.py", line
121, in render
# data_out = t.respond()
#
# File
"cheetah_DynamicallyCompiledCheetahTemplate_1285571699_18_51035.py",
line 225, in respond
#
# File
"cheetah_DynamicallyCompiledCheetahTemplate_1285571699_18_51035.py",
line 77, in __errorCatcher2
#
# File "<string>", line 1, in <module>
#
_______________________________________________
cobbler-devel mailing list
cobbler-devel(a)lists.fedorahosted.org
https://fedorahosted.org/mailman/listinfo/cobbler-devel
Most of the snippet issues I have ran into were related to #3.
Ensure all $'s are escaped (\$) or enclose the SNIPPET(..) directive with
#raw ie:
#raw
SNIPPET(...)
#end raw
-Ron