Linux Archive

Linux Archive (http://www.linux-archive.org/)
-   Fedora/Linux Management Tools (http://www.linux-archive.org/fedora-linux-management-tools/)
-   -   Runtime error, cobbler 1.0.1 (http://www.linux-archive.org/fedora-linux-management-tools/101393-runtime-error-cobbler-1-0-1-a.html)

Jeremy Rosengren 06-05-2008 04:26 PM

Runtime error, cobbler 1.0.1
 
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.pyindex 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_triggers=with_triggers,save=True)+ * * * * * * * self.api.systems().add(k, save=True, with_sync=with_sync, with_triggers=with_triggers) *** * * * * * elif k.COLLECTION_TYPE == "repo":** * * * * * * *raise CX(_("internal error, not expected to have repo child objects"))** * * * * * else:--1.5.5.1
_______________________________________________
et-mgmt-tools mailing list
et-mgmt-tools@redhat.com
https://www.redhat.com/mailman/listinfo/et-mgmt-tools


All times are GMT. The time now is 06:57 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.