From: Zack Cerza Date: Thu, 14 Apr 2022 21:49:37 +0000 (-0600) Subject: worker: Don't log incorrect teuthology sha1 X-Git-Tag: 1.2.0~183^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F1741%2Fhead;p=teuthology.git 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 --- diff --git a/teuthology/worker.py b/teuthology/worker.py index be5d6c650..5e5dfbeb3 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: