mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-03 19:45:21 +00:00
virsh: Use 'virshStoragePoolNameCompleter' for two options
'--pool' of the 'pool-event' command and '--inputpool' of 'vol-create-from' use the above mentioned completer. Signed-off-by: Peter Krempa <pkrempa@redhat.com> Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
This commit is contained in:
parent
573385dc9c
commit
f20512c414
@ -1980,6 +1980,7 @@ static const vshCmdInfo info_pool_event[] = {
|
|||||||
static const vshCmdOptDef opts_pool_event[] = {
|
static const vshCmdOptDef opts_pool_event[] = {
|
||||||
{.name = "pool",
|
{.name = "pool",
|
||||||
.type = VSH_OT_STRING,
|
.type = VSH_OT_STRING,
|
||||||
|
.completer = virshStoragePoolNameCompleter,
|
||||||
.help = N_("filter by storage pool name or uuid")
|
.help = N_("filter by storage pool name or uuid")
|
||||||
},
|
},
|
||||||
{.name = "event",
|
{.name = "event",
|
||||||
|
@ -454,6 +454,7 @@ static const vshCmdOptDef opts_vol_create_from[] = {
|
|||||||
VIRSH_COMMON_OPT_VOL_FULL,
|
VIRSH_COMMON_OPT_VOL_FULL,
|
||||||
{.name = "inputpool",
|
{.name = "inputpool",
|
||||||
.type = VSH_OT_STRING,
|
.type = VSH_OT_STRING,
|
||||||
|
.completer = virshStoragePoolNameCompleter,
|
||||||
.help = N_("pool name or uuid of the input volume's pool")
|
.help = N_("pool name or uuid of the input volume's pool")
|
||||||
},
|
},
|
||||||
{.name = "prealloc-metadata",
|
{.name = "prealloc-metadata",
|
||||||
|
Loading…
Reference in New Issue
Block a user