From c86f73edb999450b68603fcb88ee62eec22e3090 Mon Sep 17 00:00:00 2001 From: Zack Cerza Date: Thu, 30 Oct 2014 13:01:38 -0600 Subject: [PATCH] Allow omitting 'tasks' stanza in job definitions Signed-off-by: Zack Cerza --- teuthology/run.py | 4 ++++ 1 file changed, 4 insertions(+) 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') -- 2.39.5