1
0
mirror of https://github.com/certbot/certbot.git synced 2026-01-26 07:41:33 +03:00

change map() to a list comprehension. Long live GvR.

This commit is contained in:
sagi
2015-12-02 00:28:18 +00:00
parent 005be60d91
commit fdd9cf7610

View File

@@ -913,7 +913,7 @@ class ApacheConfigurator(augeas_configurator.AugeasConfigurator):
"RewriteRule", None, start=vhost.path)
if rewrite_path:
if map(self.aug.get, rewrite_path) in [
if [self.aug.get(x) for x in rewrite_path] in [
constants.REWRITE_HTTPS_ARGS,
constants.REWRITE_HTTPS_ARGS_WITH_END]:
raise errors.PluginEnhancementAlreadyPresent(