projects
/
ganeti-local
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f28ec89
)
_PrintGroupedParams: sort before printing
author
Guido Trotter
<ultrotter@google.com>
Mon, 19 Apr 2010 13:05:59 +0000
(14:05 +0100)
committer
Guido Trotter
<ultrotter@google.com>
Tue, 20 Apr 2010 15:45:15 +0000
(16:45 +0100)
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 <ultrotter@google.com>
Reviewed-by: Iustin Pop <iustin@google.com>
scripts/gnt-cluster
patch
|
blob
|
history
diff --git
a/scripts/gnt-cluster
b/scripts/gnt-cluster
index
0d5bbe4
..
1733a42
100755
(executable)
--- 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)