Merge "Recreate index.html with each run"

This commit is contained in:
Jenkins 2014-04-17 20:54:05 +00:00 committed by Gerrit Code Review
commit 83da62eede
1 changed files with 3 additions and 4 deletions

View File

@ -27,10 +27,9 @@ def create_files(templatepath, outputpath, projects):
# Create index file
env = Environment(loader=FileSystemLoader(templatepath))
indexfile = os.path.join(outputpath, "index.html")
if not os.path.exists(indexfile):
template = env.get_template('index.html')
template.stream(projects=projects,
openstack_status=openstack_status).dump(indexfile)
template = env.get_template('index.html')
template.stream(projects=projects,
openstack_status=openstack_status).dump(indexfile)
# Create each project file
for project in projects: