[rhmessaging-commits] rhmessaging commits: r2645 - mgmt/trunk/cumin/python/cumin.

rhmessaging-commits at lists.jboss.org rhmessaging-commits at lists.jboss.org
Thu Oct 16 15:45:18 EDT 2008


Author: eallen
Date: 2008-10-16 15:45:18 -0400 (Thu, 16 Oct 2008)
New Revision: 2645

Modified:
   mgmt/trunk/cumin/python/cumin/system.py
Log:
Switching to bound variable for the system/slot linkage

Modified: mgmt/trunk/cumin/python/cumin/system.py
===================================================================
--- mgmt/trunk/cumin/python/cumin/system.py	2008-10-16 18:57:31 UTC (rev 2644)
+++ mgmt/trunk/cumin/python/cumin/system.py	2008-10-16 19:45:18 UTC (rev 2645)
@@ -102,5 +102,8 @@
         return "Grid Slots %s" % fmt_count(Slot.select(sql).count())
 
     def render_sql_where(self, session, system):
-        sql = "machine = '%s'" % system.nodeName
-        return "where %s" % sql
+        return "where s.machine = %(system_name)s"
+
+    def get_sql_values(self, session, system):
+        return {"system_name": system.nodeName}
+




More information about the rhmessaging-commits mailing list