[libvirt] [PATCH] virsh: fix no error when pass a count <= 0 to setvcpus

Peter Krempa pkrempa at redhat.com
Thu Jul 30 08:05:42 UTC 2015

On Thu, Jul 30, 2015 at 09:51:15 +0200, Andrea Bolognani wrote:
> On Thu, 2015-07-30 at 09:45 +0200, Peter Krempa wrote:
> > 
> > Since we know that here we are trying to set 0 cpus which is wrong we
> > can also say that explicitly in the error message rather than copying
> > the generic one.
> Using the generic one means we don't have to add yet another
> translatable string, though. Or did you mean to use a
> completely different error message?

Completely different. Something along: "Can't set 0 processors for a VM"

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20150730/d9c4ea62/attachment-0001.sig>

More information about the libvir-list mailing list