[libvirt] [PATCH] virsh: Fix help info of net-event and event command

liyang liyang.fnst at cn.fujitsu.com
Fri Apr 4 05:58:37 UTC 2014


From: Li Yang <liyang.fnst at cn.fujitsu.com>

For now the help informatin of net-event and event like this:
[root at localhost qemu]# virsh help net-event
  NAME
    net-event - (null)
  ...

[root at localhost qemu]# virsh help event
  NAME
    event - (null)
  ...
Now fixed them, make them show correct information
instead of 'null'.

Signed-off-by: Li Yang <liyang.fnst at cn.fujitsu.com>
---
 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 f2856a5..310b5dc 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 22d21e7..338db28 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.7.1




More information about the libvir-list mailing list