mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
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:
commit
301937e175
1 changed files with 4 additions and 1 deletions
|
@ -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:
|
||||||
|
|
Loading…
Add table
Reference in a new issue