From: Daniel P. Berrange Date: Thu, 8 Jul 2010 10:30:47 +0000 (+0100) Subject: Ensure we return the callback ID in python events binding X-Git-Tag: v0.8.3~146 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a6c539445ec971beee2452257542e3ba7b8fda73;p=thirdparty%2Flibvirt.git 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 --- diff --git a/python/libvirt-override-virConnect.py b/python/libvirt-override-virConnect.py index 1a1cdd05f3..52914dc5ac 100644 --- a/python/libvirt-override-virConnect.py +++ b/python/libvirt-override-virConnect.py @@ -146,3 +146,4 @@ if ret == -1: raise libvirtError ('virConnectDomainEventRegisterAny() failed', conn=self) self.domainEventCallbackID[ret] = opaque + return ret