[et-mgmt-tools] Runtime error, cobbler 1.0.1

Jeremy Rosengren jeremy at rosengren.org
Thu Jun 5 16:26:03 UTC 2008


I checked out the v1.0.1 tag and built the RPM on my CentOS 5 server,  
then saw the following error when attempting to start cobblerd:

Starting cobbler daemon: Traceback (most recent call last):
   File "/usr/bin/cobblerd", line 19, in ?
     import cobbler.api as bootapi
   File "/usr/lib/python2.4/site-packages/cobbler/api.py", line 17, in ?
     import config
   File "/usr/lib/python2.4/site-packages/cobbler/config.py", line 23,  
in ?
     import collection_distros as distros
   File "/usr/lib/python2.4/site-packages/cobbler/ 
collection_distros.py", line 17, in ?
     import collection
   File "/usr/lib/python2.4/site-packages/cobbler/collection.py", line  
129
     self.api.profiles().add(k, save=True, with_sync=with_sync,  
with_triggers=with_triggers,save=True)
SyntaxError: duplicate keyword argument

Here's a trivial patch to remove the duplicate keywords:

---
  cobbler/collection.py |    4 ++--
  1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/cobbler/collection.py b/cobbler/collection.py
index 6044993..df866ee 100644
--- a/cobbler/collection.py
+++ b/cobbler/collection.py
@@ -126,10 +126,10 @@ class Collection(serializable.Serializable):
                    k.set_parent(newname)
                 else:
                    k.set_distro(newname)
-               self.api.profiles().add(k, save=True,  
with_sync=with_sync, with_
triggers=with_triggers,save=True)
+               self.api.profiles().add(k, save=True,  
with_sync=with_sync, with_
triggers=with_triggers)
              elif k.COLLECTION_TYPE == "system":
                 k.set_profile(newname)
-               self.api.systems().add(k, save=True,  
with_sync=with_sync, with_t
riggers=with_triggers,save=True)
+               self.api.systems().add(k, save=True,  
with_sync=with_sync, with_t
riggers=with_triggers)
              elif k.COLLECTION_TYPE == "repo":
                 raise CX(_("internal error, not expected to have repo  
child obje
cts"))
              else:
--
1.5.5.1

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/et-mgmt-tools/attachments/20080605/abcc2aac/attachment.htm>


More information about the et-mgmt-tools mailing list