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
diff --git a/manage_projects.py b/manage_projects.py
index 9efdfb5..cf88fb3 100755
--- a/manage_projects.py
+++ b/manage_projects.py
@@ -237,7 +237,11 @@
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: