From 78a8a302d91c557de985f304f602d3071c9a3ed1 Mon Sep 17 00:00:00 2001 From: Laurent Peuch Date: Fri, 12 Aug 2016 14:14:04 +0200 Subject: [PATCH] [fix] ensure that multi_instance key value is always a boolean --- src/yunohost/app.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/yunohost/app.py b/src/yunohost/app.py index af61ff63b..caa38e95b 100644 --- a/src/yunohost/app.py +++ b/src/yunohost/app.py @@ -208,6 +208,11 @@ def app_list(offset=None, limit=None, filter=None, raw=False, installed=False, w app_info_dict['installed'] = app_installed if app_installed: app_info_dict['status'] = _get_app_status(app_id) + + # dirty: we used to have manifest containing multi_instance value in form of a string + # but we've switched to bool, this line ensure retrocompatibility + app_info_dict["manifest"]["multi_instance"] = is_true(app_info_dict["manifest"].get("multi_instance", False)) + list_dict[app_id] = app_info_dict else: label = None