On 1/25/10 11:02 AM, Justin Sherrill wrote:
The handy macro (#errorCatcher Echo) used to work with cobbler and it's
templated kickstarts. We could juts include that at the top of a
kickstart file, and whenever a variable ($foo) was encountered, if a
variable by that name wasn't set it would simply echo that out. So
instead of throwing an error, $foo would be printed. This no longer
works correctly and any time it is included, you will get the following
error:
#
# ErrorCatcher instance has no attribute 'listErrors'
# File "/usr/lib/python2.4/site-packages/cobbler/templar.py", line
122, in render
# self.last_errors = t.errorCatcher().listErrors()
#
Any ideas?
Thanks
Looks like this commit broke this:
http://git.fedoraproject.org/git/cobbler?p=cobbler;a=commitdiff;h=27c814a...
and it just changed the default from echo to ListErrors (and errors if
ListErrors isn't used). Since these has the same functionality as Echo
as far as I'm concerned, I'll just change spacewalk to generate with
ListErrors at the top instead of echo.
Although it looks like it is adding it to the top for us at render time....
-Justin
--
Justin Sherrill, RHCA 1801 Varsity Drive.
Software Engineer Raleigh, NC 27603
Red Hat, Inc.