mirror of https://gitee.com/openkylin/libvirt.git
virsh-volume: Apply virshStorageVolKeyCompleter to vol-{name,pool} commands
Signed-off-by: Lin Ma <lma@suse.com> Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
This commit is contained in:
parent
64818c9ec1
commit
6a1bf268d9
|
@ -1552,11 +1552,7 @@ static const vshCmdInfo info_vol_name[] = {
|
||||||
};
|
};
|
||||||
|
|
||||||
static const vshCmdOptDef opts_vol_name[] = {
|
static const vshCmdOptDef opts_vol_name[] = {
|
||||||
{.name = "vol",
|
VIRSH_COMMON_OPT_VOL_BY_KEY,
|
||||||
.type = VSH_OT_DATA,
|
|
||||||
.flags = VSH_OFLAG_REQ,
|
|
||||||
.help = N_("volume key or path")
|
|
||||||
},
|
|
||||||
{.name = NULL}
|
{.name = NULL}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -1588,11 +1584,7 @@ static const vshCmdInfo info_vol_pool[] = {
|
||||||
};
|
};
|
||||||
|
|
||||||
static const vshCmdOptDef opts_vol_pool[] = {
|
static const vshCmdOptDef opts_vol_pool[] = {
|
||||||
{.name = "vol",
|
VIRSH_COMMON_OPT_VOL_BY_KEY,
|
||||||
.type = VSH_OT_DATA,
|
|
||||||
.flags = VSH_OFLAG_REQ,
|
|
||||||
.help = N_("volume key or path")
|
|
||||||
},
|
|
||||||
{.name = "uuid",
|
{.name = "uuid",
|
||||||
.type = VSH_OT_BOOL,
|
.type = VSH_OT_BOOL,
|
||||||
.help = N_("return the pool uuid rather than pool name")
|
.help = N_("return the pool uuid rather than pool name")
|
||||||
|
|
Loading…
Reference in New Issue