mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-22 17:34:18 +03:00
virsh: pool-list: options --all and --inactive are mutually exclusive
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>
This commit is contained in:
parent
b34c571e25
commit
1619c87eea
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user