git.annexia.org
/
mclu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1c09f27
)
mclu list: Sort lists of guests when displaying them.
author
Richard W.M. Jones
<rjones@redhat.com>
Tue, 27 May 2014 21:41:42 +0000
(22:41 +0100)
committer
Richard W.M. Jones
<rjones@redhat.com>
Tue, 27 May 2014 21:41:42 +0000
(22:41 +0100)
mclu_list.py
patch
|
blob
|
history
diff --git
a/mclu_list.py
b/mclu_list.py
index
4b2c956
..
ace59a4
100644
(file)
--- a/
mclu_list.py
+++ b/
mclu_list.py
@@
-50,12
+50,12
@@
def run (c, args):
running, inactive = lib.get_all_guests (c)
if show_running:
- for guest in
running.values(
):
+ for guest in
sorted (running.values()
):
node_name = guest['node']
dom_name = guest['vm']
full_name = "%s:%s" % (node_name, dom_name)
print "%-40s running" % full_name
if show_inactive:
- for name in
inactive.values(
):
+ for name in
sorted (inactive.values()
):
print "%-40s inactive" % name