From 63f8dfd87e73506988c27c1d9616cee85640b144 Mon Sep 17 00:00:00 2001 From: ljf Date: Mon, 4 Jun 2018 23:04:41 +0200 Subject: [PATCH] [fix] Be able to create uo name with dot like domain uo --- src/yunohost/log.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/yunohost/log.py b/src/yunohost/log.py index bbe2346e2..d95e948a1 100644 --- a/src/yunohost/log.py +++ b/src/yunohost/log.py @@ -127,7 +127,10 @@ def log_display(path, number=50): if os.path.exists(abs_path) and not path.endswith(METADATA_FILE_EXT) : log_path = abs_path - base_path = os.path.splitext(abs_path)[0] + if abs_path.endswith(METADATA_FILE_EXT) or abs_path.endswith(LOG_FILE_EXT): + base_path = ''.join(os.path.splitext(abs_path)[:-1]) + else: + base_path = abs_path base_filename = os.path.basename(base_path) md_path = base_path + METADATA_FILE_EXT if log_path is None: