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

Eric Blake eblake at redhat.com
Tue Oct 21 18:02:16 UTC 2014


On 10/21/2014 08:34 AM, Peter Krempa wrote:
> The override function was copied&pasted from virConnectGetAllDomainStats
> and the function name after the collon was not changed. Fix the issue as

s/collon/colon/

> an invalid name would appear in the error message.
> ---
>  libvirt-override.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 

ACK

> 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;
> 

-- 
Eric Blake   eblake redhat com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 539 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20141021/89df6a3c/attachment-0001.sig>


More information about the libvir-list mailing list