Author: eallen
Date: 2009-06-11 11:50:49 -0400 (Thu, 11 Jun 2009)
New Revision: 3448
Modified:
mgmt/trunk/cumin/python/cumin/grid/pool.py
Log:
Prevent error during background update of GridStatSet
Modified: mgmt/trunk/cumin/python/cumin/grid/pool.py
===================================================================
--- mgmt/trunk/cumin/python/cumin/grid/pool.py 2009-06-11 13:55:11 UTC (rev 3447)
+++ mgmt/trunk/cumin/python/cumin/grid/pool.py 2009-06-11 15:50:49 UTC (rev 3448)
@@ -403,6 +403,11 @@
def get_args(self, session):
return self.parent.get_grid_args(session)
+ def render(self, session):
+ grid = self.parent.get_grid_args(session)
+ if grid.count() > 0:
+ return super(PoolStats.GridStats.GridStatSet, self).render(session)
+
class PoolSlotMap(SlotMap):
def get_title_name(self, session, pool):
return pool.name
Show replies by date