Update yunohost_app.py

bug fix
This commit is contained in:
titoko 2013-12-04 22:24:12 +01:00
parent acb4094193
commit 9b873b0ed5

View file

@ -691,11 +691,12 @@ def app_ssowatconf():
skipped_uri=[]
apps={}
for app in app_list()['Apps']:
with open(apps_setting_path + app['ID'] +'/settings.yml') as f:
app_settings = yaml.load(f)
if 'skipped_uris' in app_settings:
skipped_uri=[app_settings['domain'] + app_settings['path'][:-1] + item for item in app_settings['skipped_uris'].split(',')]
for app in app_list()['Apps']:
if _is_installed(app['ID']):
with open(apps_setting_path + app['ID'] +'/settings.yml') as f:
app_settings = yaml.load(f)
if 'skipped_uris' in app_settings:
skipped_uri=[app_settings['domain'] + app_settings['path'][:-1] + item for item in app_settings['skipped_uris'].split(',')]
for domain in domains:
skipped_uri.extend([domain +'/ynhadmin', domain +'/ynhapi'])