Don't mark as created in github until we're done

created-in-github being True prevents the subsequent github actions
from happening. If we fail updating the github project after creation
though, with the current code we can be left with half-created projects.

Don't set it until we've actually make it through.

Change-Id: I159eda5d1a3e5a30eed5f322d1e29477a80c5bee
This commit is contained in:
Monty Taylor 2017-05-23 08:21:20 -05:00
parent 3da5fcba0a
commit 45585f0c48
No known key found for this signature in database
GPG Key ID: 7BAE94BC7141A594
1 changed files with 1 additions and 1 deletions

View File

@ -306,7 +306,6 @@ def create_update_github_project(
has_wiki=has_wiki)
created = True
cache['created-in-github'] = True
cache['has_wiki'] = has_wiki
cache['has_downloads'] = has_downloads
cache['has_issues'] = has_issues
@ -562,6 +561,7 @@ def main():
project_cache[project])
if created and GERRIT_REPLICATE:
gerrit.replicate(project)
project_cache[project]['created-in-github'] = created
except Exception:
log.exception(