diff options
author | Salim Fadhley <sal@stodge.org> | 2014-08-03 17:55:34 +0100 |
---|---|---|
committer | Salim Fadhley <sal@stodge.org> | 2014-08-03 17:55:34 +0100 |
commit | 9c100fbfeb27d311ecfcfc44235b7bbd2359bcbb (patch) | |
tree | a3a0eb6e3e771a25f000654cc0830673cab296f4 /jenkinsapi/queue.py | |
parent | 46546366eb4e770bcb365848ab836d609cd546e3 (diff) | |
download | python-jenkinsapi-9c100fbfeb27d311ecfcfc44235b7bbd2359bcbb.tar.gz python-jenkinsapi-9c100fbfeb27d311ecfcfc44235b7bbd2359bcbb.tar.bz2 python-jenkinsapi-9c100fbfeb27d311ecfcfc44235b7bbd2359bcbb.zip |
Fix redefinition of id.
Diffstat (limited to 'jenkinsapi/queue.py')
-rw-r--r-- | jenkinsapi/queue.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/jenkinsapi/queue.py b/jenkinsapi/queue.py index 0bc0f5c..83c1a0a 100644 --- a/jenkinsapi/queue.py +++ b/jenkinsapi/queue.py @@ -33,8 +33,8 @@ class Queue(JenkinsBase): def iteritems(self): for item in self._data['items']: - id = item['id'] - item_baseurl = "%s/item/%i" % (self.baseurl, id) + queue_id = item['id'] + item_baseurl = "%s/item/%i" % (self.baseurl, queue_id) yield item['id'], QueueItem(baseurl=item_baseurl, jenkins_obj=self.jenkins) def iterkeys(self): |