]> xenbits.xensource.com Git - libvirt.git/commitdiff
virsh-pool: Offer only active pool for pool-refresh completer
authorMichal Privoznik <mprivozn@redhat.com>
Fri, 1 Mar 2019 09:56:42 +0000 (10:56 +0100)
committerMichal Privoznik <mprivozn@redhat.com>
Sat, 16 Mar 2019 06:50:51 +0000 (07:50 +0100)
Only active pools can be refreshed. But our completer offers just
all pool, even inactive ones.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Pavel Hrdina <phrdina@redhat.com>
tools/virsh-pool.c

index 702c9883b43f7aaf46a5b579d420f3a3d0bbb58e..f8688fa1f2723fb796d8a2ba638b4083ef7cd49e 100644 (file)
@@ -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}
 };