[PATCH] Fix virsh net-info output for consistency

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: Hao Liu <hliu@xxxxxxxxxx>

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@xxxxxxxxxx>
---
 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

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list




[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]