From 520e858a8d6c763cef54bbe67707345c37c7ebb1 Mon Sep 17 00:00:00 2001 From: Michal Privoznik Date: Fri, 17 Sep 2021 09:58:54 +0200 Subject: [PATCH] virsh: Provide local path completer for vol-download --file MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The vol-download command takes mandatory --file argument which points to a local (possibly non-existent) path. If the file exists then it's overwritten. Set the argument's completer so that self-test doesn't report it as missing. Signed-off-by: Michal Privoznik Reviewed-by: Ján Tomko --- tools/virsh-volume.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/tools/virsh-volume.c b/tools/virsh-volume.c index 103a9b9237..152f5b0dbe 100644 --- a/tools/virsh-volume.c +++ b/tools/virsh-volume.c @@ -779,11 +779,7 @@ static const vshCmdInfo info_vol_download[] = { static const vshCmdOptDef opts_vol_download[] = { VIRSH_COMMON_OPT_VOL_FULL, - {.name = "file", - .type = VSH_OT_DATA, - .flags = VSH_OFLAG_REQ, - .help = N_("file") - }, + VIRSH_COMMON_OPT_FILE(N_("file")), VIRSH_COMMON_OPT_POOL_OPTIONAL, {.name = "offset", .type = VSH_OT_INT,