]> git.apps.os.sepia.ceph.com Git - teuthology.git/commitdiff
Allow omitting 'tasks' stanza in job definitions
authorZack Cerza <zack.cerza@inktank.com>
Thu, 30 Oct 2014 19:01:38 +0000 (13:01 -0600)
committerZack Cerza <zack.cerza@inktank.com>
Mon, 3 Nov 2014 20:42:35 +0000 (13:42 -0700)
Signed-off-by: Zack Cerza <zack@cerza.org>
teuthology/run.py

index e49b89301ab80011d11494f066e736454d8b0988..5cb8c7cd7e325b6609579f94f6629b8db776e1aa 100644 (file)
@@ -139,6 +139,10 @@ def main(ctx):
     if ctx.description is not None:
         ctx.summary['description'] = ctx.description
 
+    if not 'tasks' in ctx.config:
+        log.warning('No tasks specified. Continuing anyway...')
+        ctx.config['tasks'] = []
+
     for task in ctx.config['tasks']:
         msg = ('kernel installation shouldn be a base-level item, not part ' +
                'of the tasks list')