mirror of https://gitee.com/openkylin/libvirt.git
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>
|
||||
|
||||
Also ignore leading zeros when comparing MAC addresses.
|
||||
|
|
|
@ -1723,6 +1723,7 @@ cmdVcpupin(vshControl * ctl, vshCmd * cmd)
|
|||
|
||||
vcpu = vshCommandOptInt(cmd, "vcpu", &vcpufound);
|
||||
if (!vcpufound) {
|
||||
vshError(ctl, FALSE, _("vcpupin: Invalid or missing vCPU number."));
|
||||
virDomainFree(dom);
|
||||
return FALSE;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue