From: Georg Kunz Date: Mon, 20 Nov 2017 09:24:26 +0000 (+0100) Subject: Include full date in name of compressed result file X-Git-Tag: ovp.0.9.0~31 X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=commitdiff_plain;h=refs%2Fchanges%2F95%2F47495%2F1;p=dovetail.git Include full date in name of compressed result file The name of the compressed result file included a timestamp according to the pattern "day_hour_minute". This is a rather uncommon timestamp and can cause confusion. This patch changes the timestamp to a more common "YearMonthDay-HourMinute" format. Please note: Please check if this change has an impact on the web portal. Change-Id: Ife41050bc1d5ca6942706b756d03a1d0d251ae41 Signed-off-by: Georg Kunz --- diff --git a/dovetail/report.py b/dovetail/report.py index 41f14b53..12d6dcad 100644 --- a/dovetail/report.py +++ b/dovetail/report.py @@ -163,7 +163,7 @@ class Report(object): @classmethod def save_logs(cls): - file_suffix = time.strftime('%d_%H_%M', time.localtime(time.time())) + file_suffix = time.strftime('%Y%m%d_%H%M', time.localtime()) logs_gz = "logs_{}.tar.gz".format(file_suffix) result_dir = dt_cfg.dovetail_config['result_dir']