]> xenbits.xensource.com Git - libvirt.git/commit
virsh: fixing wrong datatype of 'set-lifcycle-action' command options.
authorJulio Faracco <jcfaracco@gmail.com>
Thu, 16 Nov 2017 03:01:54 +0000 (01:01 -0200)
committerMichal Privoznik <mprivozn@redhat.com>
Thu, 16 Nov 2017 09:27:46 +0000 (10:27 +0100)
commitc7543a7286b2480c3ef6791dd6eba35f1534dd12
treecbeba65b3af1e0948b3460795f9017f989881cb4
parent996500d6fac0e91cf15e88e3a60bff7976ad8b3f
virsh: fixing wrong datatype of 'set-lifcycle-action' command options.

The 'set-lifcycle-action' is throwing a weird error after executing it with
the '--help' option. The command output is showing the options 'type' and
'action' are as optional, but they aren't. Both are required.

virsh # set-lifecycle-action --help
...
  SYNOPSIS
    set-lifecycle-action <domain> [--type <string>] [--action <string>] ...
...
  OPTIONS
    [--domain] <string>  domain name, id or uuid
error: internal error: bad options in command: 'set-lifecycle-action'

After applying this patch, both arguments are required now.

virsh # set-lifecycle-action --help
...
  SYNOPSIS
    set-lifecycle-action <domain> <type> <action> [--config] ...

Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1509870

Signed-off-by: Julio Faracco <jcfaracco@gmail.com>
tools/virsh-domain.c