[libvirt] [python PATCH 1/3] Fix function name when parsing arguments in libvirt_virNodeAllocPages

Peter Krempa pkrempa at redhat.com
Tue Oct 21 14:34:03 UTC 2014


The override function was copied&pasted from virConnectGetAllDomainStats
and the function name after the collon was not changed. Fix the issue as
an invalid name would appear in the error message.
---
 libvirt-override.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libvirt-override.c b/libvirt-override.c
index c887b71..b4bb571 100644
--- a/libvirt-override.c
+++ b/libvirt-override.c
@@ -8214,7 +8214,7 @@ libvirt_virNodeAllocPages(PyObject *self ATTRIBUTE_UNUSED,
     unsigned int flags = VIR_NODE_ALLOC_PAGES_ADD;
     int c_retval;

-    if (!PyArg_ParseTuple(args, (char *)"OOiii:virConnectGetAllDomainStats",
+    if (!PyArg_ParseTuple(args, (char *)"OOiii:virNodeAllocPages",
                           &pyobj_conn, &pyobj_pages,
                           &startCell, &cellCount, &flags))
         return NULL;
-- 
2.1.0




More information about the libvir-list mailing list