[libvirt] [PATCH 10/12] virsh: pool-list: options --all and --inactive are mutually exclusive

Lin Ma morecache at gmail.com
Fri Sep 11 07:06:17 UTC 2020


Signed-off-by: Lin Ma <lma at suse.de>
---
 tools/virsh-pool.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/tools/virsh-pool.c b/tools/virsh-pool.c
index 9fac590ec3..634e9ac8cd 100644
--- a/tools/virsh-pool.c
+++ b/tools/virsh-pool.c
@@ -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;
 
-- 
2.26.0




More information about the libvir-list mailing list