[libvirt] [PATCH] virsh: Fix --help problem for domxml-to-native DOMAIN COMMAND

John Ferlan jferlan at redhat.com
Tue Jun 27 20:13:40 UTC 2017



On 06/27/2017 11:54 AM, Daniel Liu wrote:
> Resolves a bug in domxml-to-native command option, so that the
> following command displays the help information correctly:
> 'virsh domxml-to-native --help'.
> 
> Signed-off-by: Daniel Liu <srwx4096 at gmail.com>
> Signed-off-by: Julio Faracco <jcfaracco at gmail.com>
> ---
>  tools/virsh-domain.c | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
> 

Reviewed-by: John Ferlan <jferlan at redhat.com>

(and pushed).

Tks -

John

(FWIW: I was out of the office yesterday, hence the lack of response)


> diff --git a/tools/virsh-domain.c b/tools/virsh-domain.c
> index 5311a57c2..55f4e14a4 100644
> --- a/tools/virsh-domain.c
> +++ b/tools/virsh-domain.c
> @@ -9857,12 +9857,12 @@ static const vshCmdOptDef opts_domxmltonative[] = {
>       .help = N_("target config data type format")
>      },
>      {.name = "domain",
> -     .type = VSH_OT_DATA,
> +     .type = VSH_OT_STRING,
>       .flags = VSH_OFLAG_REQ_OPT,
>       .help = N_("domain name, id or uuid")
>      },
>      {.name = "xml",
> -     .type = VSH_OT_DATA,
> +     .type = VSH_OT_ARGV,
>       .help = N_("xml data file to export from")
>      },
>      {.name = NULL}
> 




More information about the libvir-list mailing list