1
0
mirror of https://gitlab.com/libvirt/libvirt-python.git synced 2025-07-13 12:59:30 +03:00

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>
This commit is contained in:
Pavel Hrdina
2016-07-23 18:20:44 +02:00
parent cb84e36cb3
commit a3a4425338
2 changed files with 2 additions and 2 deletions

View File

@ -580,7 +580,7 @@ def myStoragePoolEventLifecycleCallback(conn, pool, event, detail, opaque):
storageEventToString(event), storageEventToString(event),
detail)) detail))
def myStoragePoolEventRefreshCallback(conn, pool, event, detail, opaque): def myStoragePoolEventRefreshCallback(conn, pool, opaque):
print("myStoragePoolEventRefreshCallback: Storage pool %s" % pool.name()) print("myStoragePoolEventRefreshCallback: Storage pool %s" % pool.name())
########################################################################## ##########################################################################

View File

@ -8862,7 +8862,7 @@ libvirt_virConnectStoragePoolEventGenericCallback(virConnectPtr conn ATTRIBUTE_U
/* Call the Callback Dispatcher */ /* Call the Callback Dispatcher */
pyobj_ret = PyObject_CallMethod(pyobj_conn, pyobj_ret = PyObject_CallMethod(pyobj_conn,
(char*)"_dispatchStoragePoolEventGenericCallback", (char*)"_dispatchStoragePoolEventGenericCallback",
(char*)"OiiO", (char*)"OO",
pyobj_pool, pyobj_pool,
pyobj_cbData); pyobj_cbData);