[libvirt] [PATCH] virsh: Use consistent spacing for net-list

Cole Robinson crobinso at redhat.com
Thu May 28 17:16:21 UTC 2009


There is different spacing when listing active vs. inactive networks. Ex:

Name                 State      Autostart
-----------------------------------------
default              active     yes
xxxxxx               inactive no

Signed-off-by: Cole Robinson <crobinso at redhat.com>
---
 src/virsh.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/virsh.c b/src/virsh.c
index fe4e8e6..e6241e6 100644
--- a/src/virsh.c
+++ b/src/virsh.c
@@ -2798,7 +2798,7 @@ cmdNetworkList(vshControl *ctl, const vshCmd *cmd ATTRIBUTE_UNUSED)
         else
             autostartStr = autostart ? "yes" : "no";
 
-        vshPrint(ctl, "%-20s %s %s\n",
+        vshPrint(ctl, "%-20s %-10s %-10s\n",
                  inactiveNames[i],
                  _("inactive"),
                  autostartStr);
-- 
1.6.0.6




More information about the libvir-list mailing list