Runtime error, cobbler 1.0.1

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

_______________________________________________
et-mgmt-tools mailing list
et-mgmt-tools@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/et-mgmt-tools

[Index of Archives]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux