From 96764fc03d49c675e80e1e659eaa7f089c0b2f0a Mon Sep 17 00:00:00 2001 From: Laurent Peuch Date: Mon, 29 Jul 2019 23:03:57 +0200 Subject: [PATCH] [mod] BREAKING (but should be fine) apps without path aren't considering using the domain anymore --- src/yunohost/app.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/yunohost/app.py b/src/yunohost/app.py index 73ec43adb..da021d714 100644 --- a/src/yunohost/app.py +++ b/src/yunohost/app.py @@ -420,6 +420,9 @@ def app_map(app=None, raw=False, user=None): continue if 'domain' not in app_settings: continue + if 'path' not in app_settings: + # we assume that an app that doesn't have a path doesn't have an HTTP api + continue if 'no_sso' in app_settings: # I don't think we need to check for the value here continue if user is not None: @@ -430,7 +433,7 @@ def app_map(app=None, raw=False, user=None): continue domain = app_settings['domain'] - path = app_settings.get('path', '/') + path = app_settings['path'] if raw: if domain not in result: