Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/certbot/certbot.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsagi <sagi@users.noreply.github.com>2015-12-11 13:09:16 +0300
committersagi <sagi@users.noreply.github.com>2015-12-11 13:09:16 +0300
commit23a97b82812d6c9cdb2e59c4a2a255dcefa08eaf (patch)
tree63f80aad669c6562f9330408e97d7b3fd03d443d /letsencrypt-apache
parentad5817c7a964730e78898a36e306cea9ccf41bbc (diff)
Change iteration on dir_dict
Diffstat (limited to 'letsencrypt-apache')
-rw-r--r--letsencrypt-apache/letsencrypt_apache/configurator.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/letsencrypt-apache/letsencrypt_apache/configurator.py b/letsencrypt-apache/letsencrypt_apache/configurator.py
index 4a2c8b6d6..79042fe59 100644
--- a/letsencrypt-apache/letsencrypt_apache/configurator.py
+++ b/letsencrypt-apache/letsencrypt_apache/configurator.py
@@ -946,8 +946,8 @@ class ApacheConfigurator(augeas_configurator.AugeasConfigurator):
redirect_args = [constants.REWRITE_HTTPS_ARGS,
constants.REWRITE_HTTPS_ARGS_WITH_END]
- for dir_id in dir_dict:
- if [self.aug.get(x) for x in dir_dict[dir_id]] in redirect_args:
+ for matches in dir_dict.values():
+ if [self.aug.get(x) for x in matches] in redirect_args:
raise errors.PluginEnhancementAlreadyPresent(
"Let's Encrypt has already enabled redirection")