It's a lot easier, when looking at the output, if you can search the
parameter you're looking for alphabetically.

Signed-off-by: Guido Trotter <[email protected]>
---
 scripts/gnt-cluster |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/scripts/gnt-cluster b/scripts/gnt-cluster
index 0d5bbe4..1733a42 100755
--- a/scripts/gnt-cluster
+++ b/scripts/gnt-cluster
@@ -225,7 +225,7 @@ def _PrintGroupedParams(paramsdict, level=1):
 
   """
   indent = "  " * level
-  for item, val in paramsdict.items():
+  for item, val in sorted(paramsdict.items()):
     if isinstance(val, dict):
       ToStdout("%s- %s:", indent, item)
       _PrintGroupedParams(val, level=level + 1)
-- 
1.7.0.3



-- 
Subscription settings: 
http://groups.google.com/group/ganeti-devel/subscribe?hl=en

Reply via email to