I'm using 2.0.10 and got an error when doing an iso build from the web GUI:

Tue Mar  8 11:24:43 2011 - INFO | ISO build complete
Tue Mar  8 11:24:43 2011 - INFO | You may wish to delete: /buildiso
Tue Mar  8 11:24:43 2011 - INFO | The output file is:
/var/www/cobbler/pub/generated.iso
Tue Mar  8 11:24:43 2011 - INFO | ### TASK COMPLETE ###
Tue Mar  8 11:24:43 2011 - INFO | Exception occured: exceptions.TypeError
Tue Mar  8 11:24:43 2011 - INFO | Exception value: on_done() takes
exactly 1 argument (0 given)
Tue Mar  8 11:24:43 2011 - INFO | Exception Info:
  File "/usr/lib/python2.4/site-packages/cobbler/remote.py", line 97, in run
    self.on_done(self)

Tue Mar  8 11:24:43 2011 - ERROR | ### TASK FAILED ###


I fixed it by adding an explicit (self) to the on_done call which
seemed to work.  I'm still a Python near-beginner, so this might be
not The Right Way:

[root@spacewalk-test cobbler]# diff -u /tmp/remote.py.old
/usr/lib/python2.4/site-packages/cobbler/remote.py
--- /tmp/remote.py.old  2011-03-08 11:32:56.000000000 -0500
+++ /usr/lib/python2.4/site-packages/cobbler/remote.py  2011-03-08
11:25:11.000000000 -0500
@@ -94,7 +94,7 @@
         try:
             rc = self._run(self)
             self.remote._set_task_state(self,self.event_id,EVENT_COMPLETE)
-            self.on_done()
+            self.on_done(self)
             return rc
         except:
             utils.log_exc(self.logger)


Moshe Hyzon
_______________________________________________
cobbler mailing list
[email protected]
https://fedorahosted.org/mailman/listinfo/cobbler

Reply via email to