summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPavel Hrdina <phrdina@redhat.com>2016-07-23 18:20:44 +0200
committerPavel Hrdina <phrdina@redhat.com>2016-07-23 20:30:05 +0200
commita3a4425338017ecefd31b969f62a1b5803f92a5c (patch)
tree39f741b8f2aebd9e6a717ff67f2766ff36c6eea8
parentcb84e36cb3af64a84d2346b590c757b32eadb4f2 (diff)
downloadlibvirt-python-a3a4425338017ecefd31b969f62a1b5803f92a5c.tar.gz
Fix crash in storage pool refresh callback
Fixes copy-paste typo introduced by commit cb84e36c. Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1354271 Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
-rwxr-xr-xexamples/event-test.py2
-rw-r--r--libvirt-override.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/examples/event-test.py b/examples/event-test.py
index f0341b5..1bcea07 100755
--- a/examples/event-test.py
+++ b/examples/event-test.py
@@ -580,7 +580,7 @@ def myStoragePoolEventLifecycleCallback(conn, pool, event, detail, opaque):
storageEventToString(event),
detail))
-def myStoragePoolEventRefreshCallback(conn, pool, event, detail, opaque):
+def myStoragePoolEventRefreshCallback(conn, pool, opaque):
print("myStoragePoolEventRefreshCallback: Storage pool %s" % pool.name())
##########################################################################
diff --git a/libvirt-override.c b/libvirt-override.c
index 8f21cfd..72b4b6b 100644
--- a/libvirt-override.c
+++ b/libvirt-override.c
@@ -8862,7 +8862,7 @@ libvirt_virConnectStoragePoolEventGenericCallback(virConnectPtr conn ATTRIBUTE_U
/* Call the Callback Dispatcher */
pyobj_ret = PyObject_CallMethod(pyobj_conn,
(char*)"_dispatchStoragePoolEventGenericCallback",
- (char*)"OiiO",
+ (char*)"OO",
pyobj_pool,
pyobj_cbData);