Recreate index.html with each run

Regardless of whether the index.html already exists, create a new
one with each run so any template changes are picked up.

Change-Id: I3d39924bddfe8b8ad053d36cbf3b41ae21110972
This commit is contained in:
Elizabeth Krumbach Joseph 2014-03-28 12:59:29 -07:00
parent f14d070ed9
commit 4b8b0922c4

View File

@ -27,7 +27,6 @@ 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)