Merge pull request #765 from YunoHost/apps_without_path_arent_using_domain

[mod] BREAKING (but should be fine) apps without path aren't considering using the domain anymore
This commit is contained in:
Bram 2019-08-01 15:46:59 +02:00 committed by GitHub
commit 301937e175
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -420,6 +420,9 @@ def app_map(app=None, raw=False, user=None):
continue continue
if 'domain' not in app_settings: if 'domain' not in app_settings:
continue 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 if 'no_sso' in app_settings: # I don't think we need to check for the value here
continue continue
if user is not None: if user is not None:
@ -430,7 +433,7 @@ def app_map(app=None, raw=False, user=None):
continue continue
domain = app_settings['domain'] domain = app_settings['domain']
path = app_settings.get('path', '/') path = app_settings['path']
if raw: if raw:
if domain not in result: if domain not in result: