[fix] Display operation name if exist

This commit is contained in:
ljf 2018-04-14 18:16:56 +02:00
parent 1b62e9425d
commit b0a60b89d2

View file

@ -110,7 +110,7 @@ def log_display(file_name, number=50):
raise MoulinetteError(errno.EINVAL,
m18n.n('log_does_exists', log=file_name))
infos = {}
if not base_filename.startswith('/'):
if not base_path.startswith(OPERATIONS_PATH):
infos['description'] = m18n.n("log_" + operation[2], *operation[3:]),
infos['name'] = base_filename