Skip to content

Commit 5b973c3

Browse files
author
Kyr Shatskyy
committed
dispatcher: override teuthology_repo if found in config
Use same trick as for suite_repo: if it is defined just assign corresponding member in config object. Signed-off-by: Kyr Shatskyy <[email protected]>
1 parent 3c26452 commit 5b973c3

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

teuthology/dispatcher/__init__.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -247,9 +247,12 @@ def prep_job(job_config, log_file_path, archive_dir):
247247
# store that value.
248248
teuthology_branch = job_config.get('teuthology_branch', 'main')
249249
job_config['teuthology_branch'] = teuthology_branch
250+
teuthology_repo = job_config.get('teuthology_repo')
251+
if teuthology_repo:
252+
teuth_config.teuthology_git_url = teuthology_repo
250253
teuthology_sha1 = job_config.get('teuthology_sha1')
251254
if not teuthology_sha1:
252-
repo_url = repo_utils.build_git_url('teuthology', 'ceph')
255+
repo_url = teuth_config.get_teuthology_git_url()
253256
try:
254257
teuthology_sha1 = repo_utils.ls_remote(repo_url, teuthology_branch)
255258
except Exception as exc:

0 commit comments

Comments
 (0)