[libvirt] [PATCH] virsh-domain: Flip logic in cmdSetvcpus

Ján Tomko jtomko at redhat.com
Tue Aug 13 10:03:12 UTC 2013


On 08/13/2013 11:22 AM, Peter Krempa wrote:
> To avoid having to assign a failure code to the returned variable switch
> this function to negative logic. This will fix issue with invalid number
> of cpus returning success return code.
> 
> https://bugzilla.redhat.com/show_bug.cgi?id=996466
> ---
>  tools/virsh-domain.c | 17 ++++++++---------
>  1 file changed, 8 insertions(+), 9 deletions(-)
> 

ACK, nice reduction.

Jan




More information about the libvir-list mailing list