Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
suite/util: fix KeyError in get_sha1s
The git.ceph.com:8080/history returns json with 'err' instead of 'error'. 2021-04-21 08:29:51,334.334 DEBUG:teuthology.suite.util:got response: {'committish': 'e647a64c1e8147b04e84575a0fc53dee65cecab2', 'err': 'fatal: bad object e647a64c1e8147b04e84575a0fc53dee65cecab2\n', 'sha1s': []} Traceback (most recent call last): File "/home/runner/src/teuthology_master/virtualenv/bin/teuthology-suite", line 33, in <module> sys.exit(load_entry_point('teuthology', 'console_scripts', 'teuthology-suite')()) File "/home/runner/src/teuthology_master/scripts/suite.py", line 189, in main return teuthology.suite.main(args) File "/home/runner/src/teuthology_master/teuthology/suite/__init__.py", line 143, in main run.prepare_and_schedule() File "/home/runner/src/teuthology_master/teuthology/suite/run.py", line 397, in prepare_and_schedule num_jobs = self.schedule_suite() File "/home/runner/src/teuthology_master/teuthology/suite/run.py", line 612, in schedule_suite util.find_git_parent('ceph', self.base_config.sha1) File "/home/runner/src/teuthology_master/teuthology/suite/util.py", line 491, in find_git_parent sha1s = get_sha1s(project, sha1, 2) File "/home/runner/src/teuthology_master/teuthology/suite/util.py", line 485, in get_sha1s int(count), sha1, project, resp.json()['error']) KeyError: 'error' Signed-off-by: Kyr Shatskyy <[email protected]>
- Loading branch information