mirror of
https://github.com/certbot/certbot.git
synced 2026-06-03 22:08:07 -04:00
don't add empty vhosts
This commit is contained in:
parent
48b03d91cf
commit
68dd7e9192
1 changed files with 3 additions and 1 deletions
|
|
@ -563,8 +563,10 @@ class ApacheConfigurator(augeas_configurator.AugeasConfigurator):
|
|||
os.path.basename(path) == "VirtualHost"]
|
||||
for path in paths:
|
||||
new_vhost = self._create_vhost(path)
|
||||
if not new_vhost:
|
||||
continue
|
||||
realpath = os.path.realpath(new_vhost.filep)
|
||||
if realpath and realpath not in vhost_paths.keys():
|
||||
if realpath not in vhost_paths.keys():
|
||||
vhs.append(new_vhost)
|
||||
vhost_paths[realpath] = new_vhost.filep
|
||||
elif realpath == new_vhost.filep:
|
||||
|
|
|
|||
Loading…
Reference in a new issue