Hi Folks, When trying to add a profile that includes a repository I seem to have the following issue: [root@lonvmmas01 cobbler]# cobbler profile add --name=redhat.fedora.6.i386.pxe --distro=var_www_cobbler_ks_mirror_redhat.fedora.6.core_cdrom_images_pxeboot --repos="redhat_fedora_6_updates" Traceback (most recent call last): File "/usr/lib/python2.4/site-packages/cobbler/cobbler.py", line 505, in main BootCLI(sys.argv).run() File "/usr/lib/python2.4/site-packages/cobbler/cobbler.py", line 102, in run self.curry_args(self.args[1:], self.commands['toplevel']) File "/usr/lib/python2.4/site-packages/cobbler/cobbler.py", line 421, in curry_args commands[args[0]](args[1:]) File "/usr/lib/python2.4/site-packages/cobbler/cobbler.py", line 475, in profile return self.curry_args(args, self.commands['profile']) File "/usr/lib/python2.4/site-packages/cobbler/cobbler.py", line 421, in curry_args commands[args[0]](args[1:]) File "/usr/lib/python2.4/site-packages/cobbler/cobbler.py", line 353, in profile_edit return self.apply_args(args,commands,on_ok) File "/usr/lib/python2.4/site-packages/cobbler/cobbler.py", line 406, in apply_args input_routines[key](value) File "/usr/lib/python2.4/site-packages/cobbler/cobbler.py", line 350, in <lambda> '--repos' : lambda(a) : profile.set_repos(a) File "/usr/lib/python2.4/site-packages/cobbler/item_profile.py", line 93, in set_repos repolist.remove('') ValueError: list.remove(x): x not in list [root@lonvmmas01 cobbler]# However if I put a space following my repository name it then appears to work but seemingly then corrupts the repos key with an invalid value in the repos file: [root@lonvmmas01 cobbler]# cobbler profile add --name=redhat.fedora.6.i386.pxe --distro=var_www_cobbler_ks_mirror_redhat.fedora.6.core_cdrom_images_pxeboot --repos="redhat_fedora_6_updates " [root@lonvmmas01 cobbler]# cobbler sync one of the listed repositories is not defined in cobbler [root@lonvmmas01 cobbler]# Python is not my strong suit so any help would be appreciated. Kind regards, Ken.
Attachment:
smime.p7s
Description: S/MIME cryptographic signature