From: Zack Cerza Date: Thu, 30 Oct 2014 19:01:38 +0000 (-0600) Subject: Allow omitting 'tasks' stanza in job definitions X-Git-Tag: 1.1.0~1087 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=c86f73edb999450b68603fcb88ee62eec22e3090;p=teuthology.git Allow omitting 'tasks' stanza in job definitions Signed-off-by: Zack Cerza --- diff --git a/teuthology/run.py b/teuthology/run.py index e49b89301a..5cb8c7cd7e 100644 --- a/teuthology/run.py +++ b/teuthology/run.py @@ -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')