[libvirt] [PATCH] virsh: fix 'help event'

'virsh help event' included a summary line "event - (null)" due to a misnamed info field. * tools/virsh-domain.c (info_event): Use correct name. * tools/virsh-network.c (info_network_event): Likewise. Signed-off-by: Eric Blake <eblake@redhat.com> --- Deserves to be in 1.2.3 tools/virsh-domain.c | 2 +- tools/virsh-network.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/virsh-domain.c b/tools/virsh-domain.c index d9aa4fa..73414f8 100644 --- a/tools/virsh-domain.c +++ b/tools/virsh-domain.c @@ -11030,7 +11030,7 @@ static vshEventCallback vshEventCallbacks[] = { verify(VIR_DOMAIN_EVENT_ID_LAST == ARRAY_CARDINALITY(vshEventCallbacks)); static const vshCmdInfo info_event[] = { - {.name = "event", + {.name = "help", .data = N_("Domain Events") }, {.name = "desc", diff --git a/tools/virsh-network.c b/tools/virsh-network.c index 078a3cf..4b0df62 100644 --- a/tools/virsh-network.c +++ b/tools/virsh-network.c @@ -1180,7 +1180,7 @@ vshEventLifecyclePrint(virConnectPtr conn ATTRIBUTE_UNUSED, } static const vshCmdInfo info_network_event[] = { - {.name = "net-event", + {.name = "help", .data = N_("Network Events") }, {.name = "desc", -- 1.9.0

Eric Blake wrote:
'virsh help event' included a summary line "event - (null)" due to a misnamed info field.
* tools/virsh-domain.c (info_event): Use correct name. * tools/virsh-network.c (info_network_event): Likewise.
Signed-off-by: Eric Blake <eblake@redhat.com> ---
Deserves to be in 1.2.3
Fixes the problem for me, ACK. Roman Bogorodskiy

On Mon, Mar 31, 2014 at 07:06:20 -0600, Eric Blake wrote:
'virsh help event' included a summary line "event - (null)" due to a misnamed info field.
* tools/virsh-domain.c (info_event): Use correct name. * tools/virsh-network.c (info_network_event): Likewise.
Signed-off-by: Eric Blake <eblake@redhat.com> ---
Deserves to be in 1.2.3
ACK, could have been pushed as trivial. Jirka

On 03/31/2014 07:19 AM, Jiri Denemark wrote:
On Mon, Mar 31, 2014 at 07:06:20 -0600, Eric Blake wrote:
'virsh help event' included a summary line "event - (null)" due to a misnamed info field.
* tools/virsh-domain.c (info_event): Use correct name. * tools/virsh-network.c (info_network_event): Likewise.
Signed-off-by: Eric Blake <eblake@redhat.com> ---
Deserves to be in 1.2.3
ACK, could have been pushed as trivial.
Pushed now. -- Eric Blake eblake redhat com +1-919-301-3266 Libvirt virtualization library http://libvirt.org
participants (3)
-
Eric Blake
-
Jiri Denemark
-
Roman Bogorodskiy