From d27cce4af6f3b3267e4db74a6ec83f2b498beedb Mon Sep 17 00:00:00 2001 From: Laurent Peuch Date: Mon, 9 Jul 2018 18:04:22 +0200 Subject: [PATCH] [mod] put code closer to usage --- src/yunohost/app.py | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/yunohost/app.py b/src/yunohost/app.py index 686151186..a90915778 100644 --- a/src/yunohost/app.py +++ b/src/yunohost/app.py @@ -1270,10 +1270,6 @@ def app_ssowatconf(auth): main_domain = _get_maindomain() domains = domain_list(auth)['domains'] - users = {} - for username in user_list(auth)['users'].keys(): - users[username] = app_map(user=username) - skipped_urls = [] skipped_regex = [] unprotected_urls = [] @@ -1342,7 +1338,8 @@ def app_ssowatconf(auth): 'protected_regex': protected_regex, 'redirected_urls': redirected_urls, 'redirected_regex': redirected_regex, - 'users': users, + 'users': {username: app_map(user=username) + for username in user_list(auth)['users'].keys()}, } with open('/etc/ssowat/conf.json', 'w+') as f: