mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-08-26 18:41:17 +00:00
Report error when vcpupin is given bad vCPU number.
* src/virsh.c: Report error when vcpupin is given bad vCPU number (Shigeki Sakamoto).
This commit is contained in:
parent
0075d7e74a
commit
4d6a8a1c0a
@ -1,3 +1,9 @@
|
|||||||
|
Tue Mar 4 19:57:00 UTC 2008 Richard W.M. Jones <rjones@redhat.com>
|
||||||
|
|
||||||
|
Report error when vcpupin is given bad vCPU number.
|
||||||
|
* src/virsh.c: Report error when vcpupin is given bad vCPU number
|
||||||
|
(Shigeki Sakamoto).
|
||||||
|
|
||||||
Mon Mar 3 21:39:17 CET 2008 Jim Meyering <meyering@redhat.com>
|
Mon Mar 3 21:39:17 CET 2008 Jim Meyering <meyering@redhat.com>
|
||||||
|
|
||||||
Also ignore leading zeros when comparing MAC addresses.
|
Also ignore leading zeros when comparing MAC addresses.
|
||||||
|
@ -1723,6 +1723,7 @@ cmdVcpupin(vshControl * ctl, vshCmd * cmd)
|
|||||||
|
|
||||||
vcpu = vshCommandOptInt(cmd, "vcpu", &vcpufound);
|
vcpu = vshCommandOptInt(cmd, "vcpu", &vcpufound);
|
||||||
if (!vcpufound) {
|
if (!vcpufound) {
|
||||||
|
vshError(ctl, FALSE, _("vcpupin: Invalid or missing vCPU number."));
|
||||||
virDomainFree(dom);
|
virDomainFree(dom);
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user