summaryrefslogtreecommitdiff
path: root/jenkinsapi/queue.py
diff options
context:
space:
mode:
authorSalim Fadhley <sal@stodge.org>2014-08-03 17:55:34 +0100
committerSalim Fadhley <sal@stodge.org>2014-08-03 17:55:34 +0100
commit9c100fbfeb27d311ecfcfc44235b7bbd2359bcbb (patch)
treea3a0eb6e3e771a25f000654cc0830673cab296f4 /jenkinsapi/queue.py
parent46546366eb4e770bcb365848ab836d609cd546e3 (diff)
downloadpython-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.py4
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):