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:
parent
3da5fcba0a
commit
45585f0c48
|
@ -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(
|
||||
|
|
Loading…
Reference in New Issue