Hi, Spacewalk users reported issues with cobbler-2.0.10-1.el6 which doesn't correctly render snippets (RHEL 6 with python-cheetah-2.4.1-1.el6).
(For the full report see https://www.redhat.com/archives/spacewalk-list/2011-May/msg00148.html) This issue has been introduced by commit 17fb98f4e26b1428390f453aecb0fcdea8ad633e. And the trouble with the commit is - a string is always greater than an integer in python. The fix is attached. Regards, -- Michael Mráka Satellite Engineering, Red Hat -------------------------------------------------------- --- /usr/lib/python2.6/site-packages/cobbler/templar.py 2011-05-23 05:51:13.208737420 -0400 +++ /usr/lib/python2.6/site-packages/cobbler/templar.py.orig 2011-05-23 05:26:00.211723166 -0400 @@ -32,8 +32,8 @@ import clogger import time -from Cheetah import VersionTuple as Cheetah_VersionTuple -major, minor, release = Cheetah_VersionTuple[0:3] +import Cheetah +major, minor, release = Cheetah.Version.split('.') fix_cheetah_class = False if major >= 2 and minor >=4 and release >= 2: fix_cheetah_class = True _______________________________________________ cobbler-devel mailing list [email protected] https://fedorahosted.org/mailman/listinfo/cobbler-devel
