]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
Ensure we return the callback ID in python events binding
authorDaniel P. Berrange <berrange@redhat.com>
Thu, 8 Jul 2010 10:30:47 +0000 (11:30 +0100)
committerDaniel P. Berrange <berrange@redhat.com>
Mon, 12 Jul 2010 12:41:52 +0000 (13:41 +0100)
A missing return statement in the python binding meant that
the callers could not get the callback ID, and thus not be
able to unregister event callbacks

* python/libvirt-override-virConnect.py: Add missing return
  statement

python/libvirt-override-virConnect.py

index 1a1cdd05f32b46d0ef69504848d2ec48d5575c43..52914dc5ac008a5311ce508197eeb111f725a581 100644 (file)
         if ret == -1:
             raise libvirtError ('virConnectDomainEventRegisterAny() failed', conn=self)
         self.domainEventCallbackID[ret] = opaque
+        return ret