Ignore projects whose org we do not control.
In the manage_projects.py script ignore any project whose Github org we do not control. Do not create a Github project, gerrit project, or manage any ACLs. Change-Id: I0d4595c49ffa7762976a433bf9b16fc6fcaf73e5 Reviewed-on: https://review.openstack.org/16102 Reviewed-by: James E. Blair <corvus@inaugust.com> Approved: Jeremy Stanley <fungi@yuggoth.org> Reviewed-by: Jeremy Stanley <fungi@yuggoth.org> Tested-by: Jenkins
This commit is contained in:
parent
9e4702a3b4
commit
848fefd19a
@ -237,7 +237,11 @@ try:
|
||||
has_issues = 'has-issues' in options or default_has_issues
|
||||
has_downloads = 'has-downloads' in options or default_has_downloads
|
||||
has_wiki = 'has-wiki' in options or default_has_wiki
|
||||
org = orgs_dict[project_split[0].lower()]
|
||||
try:
|
||||
org = orgs_dict[project_split[0].lower()]
|
||||
except KeyError:
|
||||
# We do not have control of this github org ignore the project.
|
||||
continue
|
||||
try:
|
||||
repo = org.get_repo(repo_name)
|
||||
except github.GithubException:
|
||||
|
@ -9,6 +9,7 @@
|
||||
has-downloads: False
|
||||
---
|
||||
- project: gtest-org/gtest
|
||||
- project: completely-bogus-org/test
|
||||
- project: gtest-org/test
|
||||
- project: gtest-org/test2
|
||||
- project: gtest-org/test3
|
||||
|
Loading…
Reference in New Issue
Block a user