mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-22 05:35:25 +00:00
virsh: remove custom error for cpulist from cmdIOThreadPin
Instead of the custom error: error: iothreadpin: invalid cpulist. use vshCommandOptStringReq and let it report a more specific error: error: Failed to get option 'cpulist': Option argument is empty
This commit is contained in:
parent
45138725cf
commit
b15e26f939
@ -7116,10 +7116,8 @@ cmdIOThreadPin(vshControl *ctl, const vshCmd *cmd)
|
||||
if (vshCommandOptUInt(ctl, cmd, "iothread", &iothread_id) < 0)
|
||||
goto cleanup;
|
||||
|
||||
if (vshCommandOptString(ctl, cmd, "cpulist", &cpulist) < 0) {
|
||||
vshError(ctl, "%s", _("iothreadpin: invalid cpulist."));
|
||||
if (vshCommandOptStringReq(ctl, cmd, "cpulist", &cpulist) < 0)
|
||||
goto cleanup;
|
||||
}
|
||||
|
||||
if ((maxcpu = virshNodeGetCPUCount(priv->conn)) < 0)
|
||||
goto cleanup;
|
||||
|
Loading…
Reference in New Issue
Block a user