]> git.apps.os.sepia.ceph.com Git - teuthology.git/commitdiff
s/jobid/job_id/
authorZack Cerza <zack@cerza.org>
Tue, 10 Sep 2013 19:44:38 +0000 (14:44 -0500)
committerZack Cerza <zack@cerza.org>
Wed, 11 Sep 2013 15:03:30 +0000 (10:03 -0500)
teuthology/run.py

index 2f3ff10083b253f35f96fa32379ace9bcdbaa759..7cbd81bf9e34e098fda879cfc34044092816de06 100644 (file)
@@ -338,19 +338,19 @@ def schedule():
     beanstalk.use(tube)
 
     if ctx.show:
-        for jobid in ctx.show:
-            job = beanstalk.peek(jobid)
+        for job_id in ctx.show:
+            job = beanstalk.peek(job_id)
             if job is None and ctx.verbose:
-                print 'job {jid} is not in the queue'.format(jid=jobid)
+                print 'job {jid} is not in the queue'.format(jid=job_id)
             else:
-                print 'job {jid} contains: '.format(jid=jobid), job.body
+                print 'job {jid} contains: '.format(jid=job_id), job.body
         return
 
     if ctx.delete:
-        for jobid in ctx.delete:
-            job = beanstalk.peek(jobid)
+        for job_id in ctx.delete:
+            job = beanstalk.peek(job_id)
             if job is None:
-                print 'job {jid} is not in the queue'.format(jid=jobid)
+                print 'job {jid} is not in the queue'.format(jid=job_id)
             else:
                 job.delete()
         return