Skip to content

Commit

Permalink
teuthology:add the specified project_owner function
Browse files Browse the repository at this point in the history
Signed-off-by: Sun Junnan <sunjunnan_yewu@cmss.chinamobile.com>
    Signed-off-by: Yang Honggang <yanghonggang_yewu@cmss.chinamobile.com>

add the specified project_owner function,
project_owner is the name of the directory above the source code
  • Loading branch information
sunjunnan committed Apr 6, 2023
1 parent 8d156ae commit 60d02b6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions teuthology/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,7 @@ class TeuthologyConfig(YamlConfig):
'teuthology_path': None,
'suite_verify_ceph_hash': True,
'suite_allow_missing_packages': False,
'project_owner': 'ceph',
'openstack': {
'clone': 'git clone http://github.com/ceph/teuthology',
'user-data': 'teuthology/openstack/openstack-{os_type}-{os_version}-user-data.txt',
Expand Down
1 change: 1 addition & 0 deletions teuthology/suite/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -201,6 +201,7 @@ def git_validate_sha1(project, sha1, project_owner='ceph'):
we have specific urls to HEAD for github and git.ceph.com/gitweb
for now
'''
project_owner=config.project_owner
url = build_git_url(project, project_owner)

if '/github.com/' in url:
Expand Down

0 comments on commit 60d02b6

Please sign in to comment.