From 04bc95dd7f78fab7a9bb1d666cf2e5907b24d7d7 Mon Sep 17 00:00:00 2001 From: Zack Cerza Date: Thu, 14 Apr 2022 15:49:37 -0600 Subject: [PATCH] worker: Don't log incorrect teuthology sha1 If teuthology_path is set, we don't fetch a separate copy of the repo. In that case, the sha1 logged here may be incorrect. Signed-off-by: Zack Cerza --- teuthology/worker.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/teuthology/worker.py b/teuthology/worker.py index be5d6c6501..5e5dfbeb31 100644 --- a/teuthology/worker.py +++ b/teuthology/worker.py @@ -160,7 +160,8 @@ def prep_job(job_config, log_file_path, archive_dir): dict(status='dead', failure_reason=reason) ) raise SkipJob() - log.info('Using teuthology sha1 %s', teuthology_sha1) + if teuth_config.teuthology_path is None: + log.info('Using teuthology sha1 %s', teuthology_sha1) try: if teuth_config.teuthology_path is not None: -- 2.39.5