From a6c539445ec971beee2452257542e3ba7b8fda73 Mon Sep 17 00:00:00 2001 From: "Daniel P. Berrange" Date: Thu, 8 Jul 2010 11:30:47 +0100 Subject: [PATCH] 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 --- python/libvirt-override-virConnect.py | 1 + 1 file changed, 1 insertion(+) 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