From e3a0742156e8c42d2ccd1a21b4ec1ef55f553552 Mon Sep 17 00:00:00 2001 From: Sandon Van Ness Date: Fri, 12 Jul 2013 20:20:45 -0700 Subject: [PATCH] Don't install kernels on non-ubuntu VPS Signed-off-by: Sandon Van Ness --- teuthology/run.py | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/teuthology/run.py b/teuthology/run.py index f5dc5d1d73415..474c102af3d44 100644 --- a/teuthology/run.py +++ b/teuthology/run.py @@ -166,7 +166,14 @@ def main(): {'internal.vm_setup': None}, ]) if 'kernel' in ctx.config: - init_tasks.append({'kernel': ctx.config['kernel']}) + try: + distro = ctx.config['downburst'].get('distro') + if distro is None: + distro = 'ubuntu' + except: + distro = 'ubuntu' + if distro == 'ubuntu': + init_tasks.append({'kernel': ctx.config['kernel']}) init_tasks.extend([ {'internal.base': None}, {'internal.archive': None}, -- 2.39.5