mirror of https://gitee.com/openkylin/libvirt.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 <mprivozn@redhat.com> Reviewed-by: Pavel Hrdina <phrdina@redhat.com>
This commit is contained in:
parent
ccc7ffb4ef
commit
d8b2ec2149
|
@ -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}
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue