mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-10-05 05:45:46 +00:00
virsh: use logical or for boolean values
Bitwise or just looks wrong here. Introduced by <commit 69e0cd3>. Signed-off-by: Ján Tomko <jtomko@redhat.com>
This commit is contained in:
parent
8a4559c1aa
commit
39a6df5334
@ -7213,7 +7213,7 @@ cmdGuestvcpus(vshControl *ctl, const vshCmd *cmd)
|
|||||||
if (vshCommandOptStringReq(ctl, cmd, "cpulist", &cpulist))
|
if (vshCommandOptStringReq(ctl, cmd, "cpulist", &cpulist))
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
if (cpulist && !(enable | disable)) {
|
if (cpulist && !(enable || disable)) {
|
||||||
vshError(ctl, _("One of options --enable or --disable is required by "
|
vshError(ctl, _("One of options --enable or --disable is required by "
|
||||||
"option --cpulist"));
|
"option --cpulist"));
|
||||||
return false;
|
return false;
|
||||||
|
Loading…
Reference in New Issue
Block a user