Include full date in name of compressed result file 95/47495/1
authorGeorg Kunz <georg.kunz@ericsson.com>
Mon, 20 Nov 2017 09:24:26 +0000 (10:24 +0100)
committerGeorg Kunz <georg.kunz@ericsson.com>
Mon, 20 Nov 2017 09:24:26 +0000 (10:24 +0100)
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 <georg.kunz@ericsson.com>
dovetail/report.py

index 41f14b5..12d6dca 100644 (file)
@@ -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']