[rhmessaging-commits] rhmessaging commits: r3815 - mgmt/trunk/cumin/python/cumin/grid.
rhmessaging-commits at lists.jboss.org
rhmessaging-commits at lists.jboss.org
Fri Jan 22 13:28:13 EST 2010
Author: eallen
Date: 2010-01-22 13:28:13 -0500 (Fri, 22 Jan 2010)
New Revision: 3815
Modified:
mgmt/trunk/cumin/python/cumin/grid/slot.py
Log:
Change sort order for slot vis to Activity+State+Name. This will auto-group slots within a system or accounting group.
Modified: mgmt/trunk/cumin/python/cumin/grid/slot.py
===================================================================
--- mgmt/trunk/cumin/python/cumin/grid/slot.py 2010-01-22 16:19:04 UTC (rev 3814)
+++ mgmt/trunk/cumin/python/cumin/grid/slot.py 2010-01-22 18:28:13 UTC (rev 3815)
@@ -270,7 +270,9 @@
# leaf
if level == len(groups):
if leaves:
- for i in sorted(plist, key=lambda x:records[x]["name"]):
+ #for i in sorted(plist, key=lambda x:records[x]["name"]):
+ for i in sorted(plist, key=lambda x:"%s%s%s" %
+ (records[x]["activity"], records[x]["state"], records[x]["name"])):
el = Element()
el.job_id = records[i]["job_id"] and records[i]["job_id"] or ""
el.activity = records[i]["activity"] and records[i]["activity"] or "Unknown"
More information about the rhmessaging-commits
mailing list