projects
/
teuthology.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f185165
)
dispatcher: allow empty os_type for fake config
1603/head
author
Josh Durgin
<jdurgin@redhat.com>
Tue, 2 Feb 2021 15:06:11 +0000
(10:06 -0500)
committer
Josh Durgin
<jdurgin@redhat.com>
Tue, 2 Feb 2021 15:06:32 +0000
(10:06 -0500)
This is the same default as reimaging uses,
though it's not too important in the supervisor.
Signed-off-by: Josh Durgin <jdurgin@redhat.com>
teuthology/dispatcher/supervisor.py
patch
|
blob
|
history
diff --git
a/teuthology/dispatcher/supervisor.py
b/teuthology/dispatcher/supervisor.py
index 28d03686d084bbc013e79019b5f67edc48c1c93d..1e8533efab8c688df70eccd44d04779126de9f62 100644
(file)
--- 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'],
}