]> git.apps.os.sepia.ceph.com Git - teuthology.git/commitdiff
schedule: show priority on -s 115/head
authorSage Weil <sage@inktank.com>
Fri, 27 Sep 2013 19:02:37 +0000 (12:02 -0700)
committerSage Weil <sage@inktank.com>
Fri, 27 Sep 2013 19:02:37 +0000 (12:02 -0700)
Make output a bit nicer too.

Signed-off-by: Sage Weil <sage@inktank.com>
teuthology/run.py

index b343b5fcc280511bf7f2d34bf0ecb98d62055c57..090f394c05a62c6c1d4dde3900eb3ab2e0bf3e27 100644 (file)
@@ -352,7 +352,9 @@ def schedule():
             if job is None and ctx.verbose:
                 print 'job {jid} is not in the queue'.format(jid=job_id)
             else:
-                print 'job {jid} contains: '.format(jid=job_id), job.body
+                print '--- job {jid} priority {prio} ---\n'.format(
+                    jid=job_id,
+                    prio=job.stats()['pri']), job.body
         return
 
     if ctx.delete: