Fix: Create temp file in empty dirs for S3 log dir 93/68993/17 v0.35.11
authorAnil Belur <abelur@linuxfoundation.org>
Wed, 20 Oct 2021 03:32:44 +0000 (13:32 +1000)
committerAnil Belur <abelur@linuxfoundation.org>
Tue, 26 Oct 2021 01:23:55 +0000 (11:23 +1000)
commita74bfdad124a0dfb4c14581bbec217750f5d09ed
treec5a2faea5cc6c046e8f63dd791f9d35ffe1dcdcc
parentcf9333da4e811f4a83a3ed7b67a3746eb3c0ed42
Fix: Create temp file in empty dirs for S3 log dir

Since S3 buckets does not have an underlying file system to view empty
directories, an temp file has to be created when referencing the directory.
This allows empty folders to be viewed through cloudfront, without
returning a 404 error.

Create temp file in the format: "_%d%m%Y_%H%M%S", would
help with future clean or debugging.

Issue-ID: RELENG-4016
Change-Id: I0a635cd32da860deaada0ac0cc15bf1aa5fc2d4a
Signed-off-by: Anil Belur <abelur@linuxfoundation.org>
lftools/deploy.py
releasenotes/notes/fix-s3-logs-empty-directory-3f7041cb40dfd2fa.yaml [new file with mode: 0644]