[libvirt] [PATCH] Fix virsh net-info output for consistency

hliu at redhat.com hliu at redhat.com
Tue Nov 19 06:20:57 UTC 2013


From: Hao Liu <hliu at redhat.com>

All *-info virsh commands output a list of comma seperated key-val pairs.
But virsh net-info command misses this comma for key "Name" and "UUID".

Signed-off-by: Hao Liu <hliu at redhat.com>
---
 tools/virsh-network.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/tools/virsh-network.c b/tools/virsh-network.c
index 8ddd5ca..44a676b 100644
--- a/tools/virsh-network.c
+++ b/tools/virsh-network.c
@@ -367,10 +367,10 @@ cmdNetworkInfo(vshControl *ctl, const vshCmd *cmd)
     if (!(network = vshCommandOptNetwork(ctl, cmd, NULL)))
         return false;
 
-    vshPrint(ctl, "%-15s %s\n", _("Name"), virNetworkGetName(network));
+    vshPrint(ctl, "%-15s %s\n", _("Name:"), virNetworkGetName(network));
 
     if (virNetworkGetUUIDString(network, uuid) == 0)
-        vshPrint(ctl, "%-15s %s\n", _("UUID"), uuid);
+        vshPrint(ctl, "%-15s %s\n", _("UUID:"), uuid);
 
     active = virNetworkIsActive(network);
     if (active >= 0)
-- 
1.8.3.1




More information about the libvir-list mailing list