mirror of
https://github.com/certbot/certbot.git
synced 2026-07-15 20:53:00 -04:00
simplified augeas get, with parsers get_arg func
This commit is contained in:
parent
5f05c5104e
commit
2edfc1cd59
1 changed files with 2 additions and 2 deletions
|
|
@ -972,10 +972,10 @@ class ApacheConfigurator(augeas_configurator.AugeasConfigurator):
|
|||
:type vhost: :class:`~letsencrypt_apache.obj.VirtualHost`
|
||||
|
||||
"""
|
||||
rewrite_engine_path = self.parser.find_dir("RewriteEngine", None,
|
||||
rewrite_engine_path = self.parser.find_dir("RewriteEngine", "on",
|
||||
start=vhost.path)
|
||||
if rewrite_engine_path:
|
||||
return self.aug.get(rewrite_engine_path[0]).lower() == "on"
|
||||
return self.parser.get_arg(rewrite_engine_path[0])
|
||||
return False
|
||||
|
||||
def _create_redirect_vhost(self, ssl_vhost):
|
||||
|
|
|
|||
Loading…
Reference in a new issue