Skip to content

Commit

Permalink
run: Fix some pyright errors
Browse files Browse the repository at this point in the history
Signed-off-by: Zack Cerza <[email protected]>
  • Loading branch information
zmc committed Nov 29, 2023
1 parent b368808 commit 4df115c
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions teuthology/suite/run.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
from teuthology.config import config, JobConfig
from teuthology.exceptions import (
BranchMismatchError, BranchNotFoundError, CommitNotFoundError,
VersionNotFoundError
)
from teuthology.misc import deep_merge, get_results_url
from teuthology.orchestra.opsys import OS
Expand Down Expand Up @@ -173,6 +172,7 @@ def choose_ceph_hash(self):
"""
repo_name = self.ceph_repo_name

ceph_hash = None
if self.args.ceph_sha1:
ceph_hash = self.args.ceph_sha1
if self.args.validate_sha1:
Expand Down Expand Up @@ -494,7 +494,7 @@ def collect_jobs(self, arch, configs, newest=False, limit=0):
# optimization: one missing package causes backtrack in newest mode;
# no point in continuing the search
if newest:
return jobs_missing_packages, None
return jobs_missing_packages, []

jobs_to_schedule.append(job)
return jobs_missing_packages, jobs_to_schedule
Expand Down Expand Up @@ -642,6 +642,8 @@ def schedule_suite(self):
backtrack = 0
limit = self.args.newest
sha1s = []
jobs_to_schedule = []
jobs_missing_packages = []
while backtrack <= limit:
jobs_missing_packages, jobs_to_schedule = \
self.collect_jobs(arch, configs, self.args.newest, job_limit)
Expand Down

0 comments on commit 4df115c

Please sign in to comment.