From: Michal Privoznik Date: Fri, 1 Mar 2019 09:56:42 +0000 (+0100) Subject: virsh-pool: Offer only active pool for pool-refresh completer X-Git-Tag: v5.2.0-rc1~151 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d8b2ec21499c516d846b088d5863bed337062b38;p=thirdparty%2Flibvirt.git virsh-pool: Offer only active pool for pool-refresh completer Only active pools can be refreshed. But our completer offers just all pool, even inactive ones. Signed-off-by: Michal Privoznik Reviewed-by: Pavel Hrdina --- diff --git a/tools/virsh-pool.c b/tools/virsh-pool.c index 702c9883b4..f8688fa1f2 100644 --- a/tools/virsh-pool.c +++ b/tools/virsh-pool.c @@ -735,7 +735,7 @@ static const vshCmdInfo info_pool_refresh[] = { }; static const vshCmdOptDef opts_pool_refresh[] = { - VIRSH_COMMON_OPT_POOL_FULL(0), + VIRSH_COMMON_OPT_POOL_FULL(VIR_CONNECT_LIST_STORAGE_POOLS_ACTIVE), {.name = NULL} };