]> xenbits.xensource.com Git - libvirt.git/commitdiff
virsh: use logical or for boolean values
authorJán Tomko <jtomko@redhat.com>
Tue, 6 Mar 2018 13:13:55 +0000 (14:13 +0100)
committerJán Tomko <jtomko@redhat.com>
Thu, 8 Mar 2018 15:51:39 +0000 (16:51 +0100)
Bitwise or just looks wrong here.
Introduced by <commit 69e0cd3>.

Signed-off-by: Ján Tomko <jtomko@redhat.com>
tools/virsh-domain.c

index 29bc8e6db18bd1b0dcbdd15cdd10613824f6ac95..c78cf7f219ca7b84b261f87bee1f3915a219e409 100644 (file)
@@ -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;