mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-22 05:35:25 +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))
|
||||
return false;
|
||||
|
||||
if (cpulist && !(enable | disable)) {
|
||||
if (cpulist && !(enable || disable)) {
|
||||
vshError(ctl, _("One of options --enable or --disable is required by "
|
||||
"option --cpulist"));
|
||||
return false;
|
||||
|
Loading…
Reference in New Issue
Block a user