summaryrefslogtreecommitdiffstats
path: root/libvirt-override-virConnect.py
diff options
context:
space:
mode:
authorDaniel P. Berrange <berrange@redhat.com>2010-07-08 11:30:47 +0100
committerDaniel P. Berrange <berrange@redhat.com>2010-07-12 13:41:52 +0100
commit8520a8bf894b02f354b060b0694dd64fdf6ee26d (patch)
treed44a7b7b02953f9218db7d21e68dc8a2f697e006 /libvirt-override-virConnect.py
parentbc184d51ae6e5e0ef5dab09963b75b86a7c05940 (diff)
downloadlibvirt-python-split-8520a8bf894b02f354b060b0694dd64fdf6ee26d.tar.gz
libvirt-python-split-8520a8bf894b02f354b060b0694dd64fdf6ee26d.tar.xz
libvirt-python-split-8520a8bf894b02f354b060b0694dd64fdf6ee26d.zip
Ensure we return the callback ID in python events binding
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
Diffstat (limited to 'libvirt-override-virConnect.py')
-rw-r--r--libvirt-override-virConnect.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/libvirt-override-virConnect.py b/libvirt-override-virConnect.py
index 1a1cdd0..52914dc 100644
--- a/libvirt-override-virConnect.py
+++ b/libvirt-override-virConnect.py
@@ -146,3 +146,4 @@
if ret == -1:
raise libvirtError ('virConnectDomainEventRegisterAny() failed', conn=self)
self.domainEventCallbackID[ret] = opaque
+ return ret