mirror of
https://github.com/certbot/certbot.git
synced 2026-06-08 16:22:18 -04:00
don't continue if there's no vhost
This commit is contained in:
parent
5f50d698ee
commit
b7c94bb297
1 changed files with 2 additions and 0 deletions
|
|
@ -865,6 +865,8 @@ class ApacheConfigurator(augeas_configurator.AugeasConfigurator):
|
|||
fp = vhost.filep
|
||||
vh_p = self.aug.match("/files%s//* [label()=~regexp('%s')]" %
|
||||
(fp, parser.case_i("VirtualHost")))
|
||||
if not vh_p:
|
||||
return
|
||||
vh_path = vh_p[0]
|
||||
if (self.parser.find_dir("ServerName", target_name, start=vh_path, exclude=False)
|
||||
or self.parser.find_dir("ServerAlias", target_name, start=vh_path, exclude=False)):
|
||||
|
|
|
|||
Loading…
Reference in a new issue