From: Peter Krempa Date: Thu, 16 Sep 2021 12:52:50 +0000 (+0200) Subject: virsh: Use 'virshStoragePoolNameCompleter' for two options X-Git-Tag: v7.8.0-rc1~171 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f20512c4145006d1dd5d17178bc4ff1c5b509814;p=thirdparty%2Flibvirt.git 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 Reviewed-by: Michal Privoznik --- diff --git a/tools/virsh-pool.c b/tools/virsh-pool.c index c65e8163a6..cbbbe5c4b9 100644 --- a/tools/virsh-pool.c +++ b/tools/virsh-pool.c @@ -1980,6 +1980,7 @@ static const vshCmdInfo info_pool_event[] = { static const vshCmdOptDef opts_pool_event[] = { {.name = "pool", .type = VSH_OT_STRING, + .completer = virshStoragePoolNameCompleter, .help = N_("filter by storage pool name or uuid") }, {.name = "event", diff --git a/tools/virsh-volume.c b/tools/virsh-volume.c index c51dc023e3..197ed2489c 100644 --- a/tools/virsh-volume.c +++ b/tools/virsh-volume.c @@ -454,6 +454,7 @@ static const vshCmdOptDef opts_vol_create_from[] = { VIRSH_COMMON_OPT_VOL_FULL, {.name = "inputpool", .type = VSH_OT_STRING, + .completer = virshStoragePoolNameCompleter, .help = N_("pool name or uuid of the input volume's pool") }, {.name = "prealloc-metadata",