From 1619c87eea3c1dc60cca7b4cc1f35a6724db2ec7 Mon Sep 17 00:00:00 2001 From: Lin Ma Date: Fri, 11 Sep 2020 15:06:17 +0800 Subject: [PATCH] virsh: pool-list: options --all and --inactive are mutually exclusive MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Lin Ma Reviewed-by: Ján Tomko Signed-off-by: Ján Tomko --- 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.47.2