From: Lin Ma Date: Wed, 16 Jun 2021 08:02:53 +0000 (+0800) Subject: virsh-volume: Apply virshStorageVolKeyCompleter to vol-{name,pool} commands X-Git-Tag: v7.5.0-rc1~67 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6a1bf268d934785fc67d40578a5dff2ebacafe17;p=thirdparty%2Flibvirt.git virsh-volume: Apply virshStorageVolKeyCompleter to vol-{name,pool} commands Signed-off-by: Lin Ma Reviewed-by: Michal Privoznik --- diff --git a/tools/virsh-volume.c b/tools/virsh-volume.c index 41b366a833..daa205ea67 100644 --- a/tools/virsh-volume.c +++ b/tools/virsh-volume.c @@ -1552,11 +1552,7 @@ static const vshCmdInfo info_vol_name[] = { }; static const vshCmdOptDef opts_vol_name[] = { - {.name = "vol", - .type = VSH_OT_DATA, - .flags = VSH_OFLAG_REQ, - .help = N_("volume key or path") - }, + VIRSH_COMMON_OPT_VOL_BY_KEY, {.name = NULL} }; @@ -1588,11 +1584,7 @@ static const vshCmdInfo info_vol_pool[] = { }; static const vshCmdOptDef opts_vol_pool[] = { - {.name = "vol", - .type = VSH_OT_DATA, - .flags = VSH_OFLAG_REQ, - .help = N_("volume key or path") - }, + VIRSH_COMMON_OPT_VOL_BY_KEY, {.name = "uuid", .type = VSH_OT_BOOL, .help = N_("return the pool uuid rather than pool name")