Commit dfc1f265 authored by Aurélien Dunand's avatar Aurélien Dunand
Browse files

Add a tag jid on job

This tag report the numeric id of the job, the id part after the 'job-'
string.
parent 2adb6afa
Loading
Loading
Loading
Loading
+4 −0
Changes for cloudcontrol/common/jobs/job.py: 4 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -124,6 +124,10 @@ class JobState(object):
    def id(self):
        return self._job_id

    @property
    def jid(self):
        return self._job_id.rsplit('-')[-1]

    @property
    def system(self):
        return self._system