Michael DeHaan wrote:
> Dave Hatton wrote:
>
>> Hi Michael,
>>
>> Could be somethig strange with me - but 1.1.1 gives me lots of problems.
>>
>> eg
>> --------------------------------------------- cut
>> ---------------------------------------------------------
>> [EMAIL PROTECTED] cobbler]# cobbler system getks --name=starg43
>> Traceback (most recent call last):
>> File "/usr/lib/python2.4/site-packages/cobbler/kickgen.py", line 247,
>> in generate_kickstart_for_system
>> data = self.templar.render(kfile, meta, None, s)
>> File "/usr/lib/python2.4/site-packages/cobbler/templar.py", line 89,
>> in render
>> return utils.cheetah_exc(e)
>> File "/usr/lib/python2.4/site-packages/cobbler/utils.py", line 127, in
>> cheetah_exc
>> lines = get_exc(exc).split("\n")
>> File "/usr/lib/python2.4/site-packages/cobbler/utils.py", line 113, in
>> get_exc
>> buf = buf + "%s" % exc.message
>> AttributeError: NotFound instance has no attribute 'message'
>> Error templating file
>> --------------------------------------------- cut
>> ---------------------------------------------------------
>>
>> Dave
>>
>>
>> _______________________________________________
>> cobbler mailing list
>> [email protected]
>> https://fedorahosted.org/mailman/listinfo/cobbler
>>
>>
>
> It appears that particular exception doesn't have message text. I'll
> work on this to tolerate the error and post a new version.
>
> Thanks!
>
> --Michael
>
>
> _______________________________________________
> cobbler mailing list
> [email protected]
> https://fedorahosted.org/mailman/listinfo/cobbler
>
I have updated Cobbler to 1.1.1-2 to correct for the problem Dave Hatton
reported earlier today. In addition, I've found out how to make
Cheetah's "errorCatcher" work inside of snippets again, so there should
be even less need for the part that displays errors now.
I'm reversing my earlier considerations -- if there's an error and you
have something like $this_symbol_does_not_exist, it will stay in the
template as that, rather than generating a traceback.
Ultimately, I think that's the way to go given I can't get the line
numbers reported for simple things like that in a Snippet, or at least
the line numbers appear to be line numbers inside the compiled Python
version of the snippet.
This is more logical. This also eliminates the problem of broken
snippets just appearing as unresolved SNIPPETS. The snippets will now
expand and show their contents, even if they contain errors... you'll be
able to look into the snippet and see what didn't resolve.
http://people.fedoraproject.org/~mdehaan/files/test_releases/cobbler-1.1.1-2.src.rpm
http://people.fedoraproject.org/~mdehaan/files/test_releases/koan-1.1-1.src.rpm
--Michael
_______________________________________________
cobbler mailing list
[email protected]
https://fedorahosted.org/mailman/listinfo/cobbler