From 4748e1dd1e6134e7bf95e31241c4cb3990f33bca Mon Sep 17 00:00:00 2001 From: sagi Date: Fri, 11 Dec 2015 09:57:08 +0000 Subject: [PATCH] Name the list of two redirect argument lists --- letsencrypt-apache/letsencrypt_apache/configurator.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/letsencrypt-apache/letsencrypt_apache/configurator.py b/letsencrypt-apache/letsencrypt_apache/configurator.py index 6b4a0e46e..90921d327 100644 --- a/letsencrypt-apache/letsencrypt_apache/configurator.py +++ b/letsencrypt-apache/letsencrypt_apache/configurator.py @@ -940,10 +940,10 @@ class ApacheConfigurator(augeas_configurator.AugeasConfigurator): dir_dict[dir_id].append(match) if dir_dict: + 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 [ - constants.REWRITE_HTTPS_ARGS, - constants.REWRITE_HTTPS_ARGS_WITH_END]: + if [self.aug.get(x) for x in dir_dict[dir_id]] in redirect_args: raise errors.PluginEnhancementAlreadyPresent( "Let's Encrypt has already enabled redirection")