Author: eallen
Date: 2009-08-25 19:01:05 -0400 (Tue, 25 Aug 2009)
New Revision: 3590
Modified:
mgmt/trunk/cumin/python/cumin/model.py
Log:
Split out the job id from the job name returned from the qmf GetJobs call
Modified: mgmt/trunk/cumin/python/cumin/model.py
===================================================================
--- mgmt/trunk/cumin/python/cumin/model.py 2009-08-25 22:43:32 UTC (rev 3589)
+++ mgmt/trunk/cumin/python/cumin/model.py 2009-08-25 23:01:05 UTC (rev 3590)
@@ -1902,7 +1902,12 @@
class Job(object):
def __init__(self, id):
- self.id = id
+ real_id = id
+ sched, sep, jid = id.partition('#')
+ if jid:
+ real_id, sep, proc = jid.partition('#')
+
+ self.id = real_id
self.name = id
def get(cls, id):