From c416ac976172cc209eaf7419c1ebcbfdd9f03df4 Mon Sep 17 00:00:00 2001 From: Josh Durgin Date: Tue, 2 Feb 2021 10:06:11 -0500 Subject: [PATCH] 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 --- teuthology/dispatcher/supervisor.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/teuthology/dispatcher/supervisor.py b/teuthology/dispatcher/supervisor.py index 28d03686d0..1e8533efab 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'], } -- 2.39.5