[libvirt] [libvirt-python PATCH 1/1] Change the comment in getPyNodeCPUCount method reflecting correct called methods

Pavel Hrdina phrdina at redhat.com
Thu Oct 16 07:36:59 UTC 2014


On 10/15/2014 03:54 PM, Pradipta Kr. Banerjee wrote:
> Comment mentions virGetNodeCPUMap whereas the actual method is
> virNodeGetCPUMap. Similarly comment mentions virGetNodeInfo whereas the actual
> method is virNodeGetInfo
>
> Signed-off-by: Pradipta Kr. Banerjee <bpradip at in.ibm.com>
> ---
>   libvirt-override.c | 4 ++--
>   1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/libvirt-override.c b/libvirt-override.c
> index 8b3c503..9ba87eb 100644
> --- a/libvirt-override.c
> +++ b/libvirt-override.c
> @@ -437,10 +437,10 @@ cleanup:
>
>   /*
>    * Utility function to retrieve the number of node CPUs present.
> - * It first tries virGetNodeCPUMap, which will return the
> + * It first tries virNodeGetCPUMap, which will return the
>    * number reliably, if available.
>    * As a fallback and for compatibility with backlevel libvirt
> - * versions virGetNodeInfo will be called to calculate the
> + * versions virNodeGetInfo will be called to calculate the
>    * CPU number, which has the potential to return a too small
>    * number if some host CPUs are offline.
>    */
>

ACK and pushed, thanks for the patch.

Pavel




More information about the libvir-list mailing list