From 51175db814cc7ecd23c12f9882a6de5f2021e5ca Mon Sep 17 00:00:00 2001 From: Laurent Peuch Date: Mon, 2 Jul 2018 17:04:41 +0200 Subject: [PATCH] [mod] information needed for the admin UI --- src/yunohost/app.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/yunohost/app.py b/src/yunohost/app.py index 420a5fb3e..637db1747 100644 --- a/src/yunohost/app.py +++ b/src/yunohost/app.py @@ -1369,14 +1369,14 @@ def app_change_label(auth, app, new_label): def app_action_list(app_id): logger.warning(m18n.n('experimental_feature')) - installed = _is_installed(app_id) - if not installed: - raise MoulinetteError(errno.ENOPKG, - m18n.n('app_not_installed', app=app_id)) + # this will take care of checking if the app is installed + app_info_dict = app_info(app_id) actions = os.path.join(APPS_SETTING_PATH, app_id, 'actions.json') return { + "app_id": app_id, + "app_name": app_info_dict["name"], "actions": read_json(actions) if os.path.exists(actions) else [], }