]> git.apps.os.sepia.ceph.com Git - teuthology.git/commitdiff
Make teuthology-schedule also print the job's name
authorZack Cerza <zack@cerza.org>
Fri, 4 Oct 2013 17:41:02 +0000 (12:41 -0500)
committerZack Cerza <zack@cerza.org>
Fri, 4 Oct 2013 18:11:03 +0000 (13:11 -0500)
Signed-off-by: Zack Cerza <zack.cerza@inktank.com>
teuthology/run.py

index cdeee7b523d722504be1ffe90491e256aae5dd10..20f58ad9e15688a89ab3786c19a85a48081596e9 100644 (file)
@@ -391,13 +391,13 @@ def schedule():
         del ctx.config['targets']
 
     job_config = dict(
-            name=ctx.name,
-            last_in_suite=ctx.last_in_suite,
-            email=ctx.email,
-            description=ctx.description,
-            owner=ctx.owner,
-            verbose=ctx.verbose,
-            )
+        name=ctx.name,
+        last_in_suite=ctx.last_in_suite,
+        email=ctx.email,
+        description=ctx.description,
+        owner=ctx.owner,
+        verbose=ctx.verbose,
+    )
     # Merge job_config and ctx.config
     job_config.update(ctx.config)
     if ctx.timeout is not None:
@@ -411,5 +411,6 @@ def schedule():
             ttr=60*60*24,
             priority=ctx.priority,
             )
-        print 'Job scheduled with ID {jid}'.format(jid=jid)
+        print 'Job scheduled with name {name} and ID {jid}'.format(
+            name=ctx.name, jid=jid)
         num -= 1