]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
virsh: pool-list: options --all and --inactive are mutually exclusive
authorLin Ma <morecache@gmail.com>
Fri, 11 Sep 2020 07:06:17 +0000 (15:06 +0800)
committerJán Tomko <jtomko@redhat.com>
Sat, 12 Sep 2020 10:49:32 +0000 (12:49 +0200)
Signed-off-by: Lin Ma <lma@suse.de>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
Signed-off-by: Ján Tomko <jtomko@redhat.com>
tools/virsh-pool.c

index 9fac590ec3fef353988a83b6b4f615b72dfe77e7..634e9ac8cd03c7e75ecac6d838b3338a9590681c 100644 (file)
@@ -1146,6 +1146,8 @@ cmdPoolList(vshControl *ctl, const vshCmd *cmd G_GNUC_UNUSED)
     inactive = vshCommandOptBool(cmd, "inactive");
     all = vshCommandOptBool(cmd, "all");
 
+    VSH_EXCLUSIVE_OPTIONS_VAR(all, inactive);
+
     if (inactive)
         flags = VIR_CONNECT_LIST_STORAGE_POOLS_INACTIVE;