From: Josh Durgin Date: Tue, 2 Feb 2021 15:06:11 +0000 (-0500) Subject: dispatcher: allow empty os_type for fake config X-Git-Tag: 1.1.0~16^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F1603%2Fhead;p=teuthology.git dispatcher: allow empty os_type for fake config This is the same default as reimaging uses, though it's not too important in the supervisor. Signed-off-by: Josh Durgin --- diff --git a/teuthology/dispatcher/supervisor.py b/teuthology/dispatcher/supervisor.py index 28d03686d..1e8533efa 100644 --- a/teuthology/dispatcher/supervisor.py +++ b/teuthology/dispatcher/supervisor.py @@ -245,7 +245,7 @@ def create_fake_context(job_config, block=False): 'owner': owner, 'archive': job_config['archive_path'], 'machine_type': job_config['machine_type'], - 'os_type': job_config['os_type'], + 'os_type': job_config.get('os_type', 'ubuntu'), 'os_version': os_version, 'name': job_config['name'], }