]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
virsh: Use 'virshStoragePoolNameCompleter' for two options
authorPeter Krempa <pkrempa@redhat.com>
Thu, 16 Sep 2021 12:52:50 +0000 (14:52 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Fri, 17 Sep 2021 07:40:46 +0000 (09:40 +0200)
'--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>
tools/virsh-pool.c
tools/virsh-volume.c

index c65e8163a69bb973c24d9d58803475ee504b2bbf..cbbbe5c4b910d33af5f7852b89779baf5a152aa2 100644 (file)
@@ -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",
index c51dc023e390b6f4188d98b1e8928cad236fed31..197ed2489c79d0b48a3ad5f328be08e64ee83d94 100644 (file)
@@ -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",