From 45585f0c481dba32103c73707c9a9cf088527ea7 Mon Sep 17 00:00:00 2001 From: Monty Taylor Date: Tue, 23 May 2017 08:21:20 -0500 Subject: [PATCH] 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 --- jeepyb/cmd/manage_projects.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jeepyb/cmd/manage_projects.py b/jeepyb/cmd/manage_projects.py index 5b482eb..7d85e95 100644 --- a/jeepyb/cmd/manage_projects.py +++ b/jeepyb/cmd/manage_projects.py @@ -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(