Author: eallen
Date: 2008-10-14 17:16:14 -0400 (Tue, 14 Oct 2008)
New Revision: 2640
Modified:
mgmt/trunk/cumin/python/cumin/limits.py
Log:
Fixing limitset so that it actually gets the list of limits
Modified: mgmt/trunk/cumin/python/cumin/limits.py
===================================================================
--- mgmt/trunk/cumin/python/cumin/limits.py 2008-10-14 20:51:15 UTC (rev 2639)
+++ mgmt/trunk/cumin/python/cumin/limits.py 2008-10-14 21:16:14 UTC (rev 2640)
@@ -68,6 +68,9 @@
def do_get_items(self, session, *args):
limits = self.limits.get(session)
+ if not len(limits):
+ limits = self.fetch_limits(session)
+ self.limits.set(session, limits)
keys = limits.keys()
keys.sort()
return [{"name":x, "curr":limits[x]["CURRENT"],
"max":limits[x]["MAX"]} for x in keys]