|
|
102fe1 |
From c3e600b430787105f135e148aaca9b0b481dbfa3 Mon Sep 17 00:00:00 2001
|
|
|
102fe1 |
Message-Id: <c3e600b430787105f135e148aaca9b0b481dbfa3@dist-git>
|
|
|
102fe1 |
From: Pavel Hrdina <phrdina@redhat.com>
|
|
|
102fe1 |
Date: Mon, 25 Jul 2016 10:27:18 +0200
|
|
|
102fe1 |
Subject: [PATCH] Fix crash in storage pool refresh callback
|
|
|
102fe1 |
|
|
|
102fe1 |
Fixes copy-paste typo introduced by commit cb84e36c.
|
|
|
102fe1 |
|
|
|
102fe1 |
Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1354271
|
|
|
102fe1 |
|
|
|
102fe1 |
Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
|
|
|
102fe1 |
(cherry picked from commit a3a4425338017ecefd31b969f62a1b5803f92a5c)
|
|
|
102fe1 |
Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
|
|
|
102fe1 |
---
|
|
|
102fe1 |
examples/event-test.py | 2 +-
|
|
|
102fe1 |
libvirt-override.c | 2 +-
|
|
|
102fe1 |
2 files changed, 2 insertions(+), 2 deletions(-)
|
|
|
102fe1 |
|
|
|
102fe1 |
diff --git a/examples/event-test.py b/examples/event-test.py
|
|
|
102fe1 |
index f0341b5..1bcea07 100755
|
|
|
102fe1 |
--- a/examples/event-test.py
|
|
|
102fe1 |
+++ b/examples/event-test.py
|
|
|
102fe1 |
@@ -580,7 +580,7 @@ def myStoragePoolEventLifecycleCallback(conn, pool, event, detail, opaque):
|
|
|
102fe1 |
storageEventToString(event),
|
|
|
102fe1 |
detail))
|
|
|
102fe1 |
|
|
|
102fe1 |
-def myStoragePoolEventRefreshCallback(conn, pool, event, detail, opaque):
|
|
|
102fe1 |
+def myStoragePoolEventRefreshCallback(conn, pool, opaque):
|
|
|
102fe1 |
print("myStoragePoolEventRefreshCallback: Storage pool %s" % pool.name())
|
|
|
102fe1 |
|
|
|
102fe1 |
##########################################################################
|
|
|
102fe1 |
diff --git a/libvirt-override.c b/libvirt-override.c
|
|
|
102fe1 |
index 8f21cfd..72b4b6b 100644
|
|
|
102fe1 |
--- a/libvirt-override.c
|
|
|
102fe1 |
+++ b/libvirt-override.c
|
|
|
102fe1 |
@@ -8862,7 +8862,7 @@ libvirt_virConnectStoragePoolEventGenericCallback(virConnectPtr conn ATTRIBUTE_U
|
|
|
102fe1 |
/* Call the Callback Dispatcher */
|
|
|
102fe1 |
pyobj_ret = PyObject_CallMethod(pyobj_conn,
|
|
|
102fe1 |
(char*)"_dispatchStoragePoolEventGenericCallback",
|
|
|
102fe1 |
- (char*)"OiiO",
|
|
|
102fe1 |
+ (char*)"OO",
|
|
|
102fe1 |
pyobj_pool,
|
|
|
102fe1 |
pyobj_cbData);
|
|
|
102fe1 |
|
|
|
102fe1 |
--
|
|
|
102fe1 |
2.9.2
|
|
|
102fe1 |
|