Author: justi9
Date: 2009-02-02 12:50:57 -0500 (Mon, 02 Feb 2009)
New Revision: 3091
Modified:
mgmt/trunk/cumin/python/cumin/job.py
Log:
Add a missing constraint
Modified: mgmt/trunk/cumin/python/cumin/job.py
===================================================================
--- mgmt/trunk/cumin/python/cumin/job.py 2009-02-02 17:41:04 UTC (rev 3090)
+++ mgmt/trunk/cumin/python/cumin/job.py 2009-02-02 17:50:57 UTC (rev 3091)
@@ -532,7 +532,7 @@
select 1
from slot as l
join job as j on j.custom_id = l.job_id
- where j.custom_group = %(id)s
+ where j.custom_group = %(id)s and l.system = s.node_name
"""
return "where exists (%s)" % subquery