From a1b42e65f8ddc61902fdc6066b7ea59d7de77cd7 Mon Sep 17 00:00:00 2001 From: Laurent Peuch Date: Sun, 30 Oct 2016 13:49:40 +0100 Subject: [PATCH] [mod] remove useless variables --- 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 e3d5ad20..83fc8614 100644 --- a/src/yunohost/app.py +++ b/src/yunohost/app.py @@ -1041,14 +1041,11 @@ def app_ssowatconf(auth): continue # Check the file contains the ACME challenge uri - acme_uri = '/.well-known/acme-challenge' - - if not acme_uri in open(nginx_acme_challenge_conf_file).read(): + if not '/.well-known/acme-challenge' in open(nginx_acme_challenge_conf_file).read(): continue # If so, then authorize the ACME challenge uri to unprotected regex - regex = domain + "/%.well%-known/acme%-challenge/.*$" - unprotected_regex.append(regex) + unprotected_regex.append(domain + "/%.well%-known/acme%-challenge/.*$") conf_dict = {