提交 39a6df53 编写于 作者: J Ján Tomko

virsh: use logical or for boolean values

Bitwise or just looks wrong here.
Introduced by <commit 69e0cd33>.
Signed-off-by: NJán Tomko <jtomko@redhat.com>
上级 8a4559c1
......@@ -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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册