Correct .gitreview generation formatting.
* jeepyb/cmd/manage_projects.py(main): The .gitreview file contents
are written from a multiline format string, and thus the indentation
of subsequent lines must reflect what is expected in the file.
Change-Id: I904de93a6494dd0aece0e62c3fe2f97d872fe3b6
Reviewed-on: https://review.openstack.org/18870
Reviewed-by: Ionut Artarisi <iartarisi@suse.cz>
Approved: James E. Blair <corvus@inaugust.com>
Reviewed-by: James E. Blair <corvus@inaugust.com>
Tested-by: Jenkins
diff --git a/jeepyb/cmd/manage_projects.py b/jeepyb/cmd/manage_projects.py
index 73067af..9c4f633 100644
--- a/jeepyb/cmd/manage_projects.py
+++ b/jeepyb/cmd/manage_projects.py
@@ -296,12 +296,11 @@
with open(os.path.join(repo_path,
".gitreview"),
'w') as gitreview:
- gitreview.write("""
- [gerrit]
- host=%s
- port=29418
- project=%s
- """ % (GERRIT_HOST, project_git))
+ gitreview.write("""[gerrit]
+host=%s
+port=29418
+project=%s
+""" % (GERRIT_HOST, project_git))
git_command(repo_path, "add .gitreview")
cmd = "commit -a -m'Added .gitreview' --author=" \
"'Openstack Project Creator " \