mirror of
https://github.com/certbot/certbot.git
synced 2026-05-28 04:34:11 -04:00
play coverage games
This commit is contained in:
parent
abc0287cde
commit
0aa6898218
1 changed files with 1 additions and 4 deletions
|
|
@ -51,10 +51,7 @@ class ApacheHttp01Test(util.ApacheTest):
|
|||
# Find a vhost with a name/alias we can use
|
||||
for j in range(vhost_index + 1, len(self.config.vhosts)):
|
||||
vhost = self.config.vhosts[j]
|
||||
if vhost.name:
|
||||
domain = vhost.name
|
||||
elif vhost.aliases:
|
||||
domain = next(iter(vhost.aliases))
|
||||
domain = vhost.name if vhost.name else next(iter(vhost.aliases), None)
|
||||
if domain:
|
||||
self.vhosts.append(vhost)
|
||||
vhost_index = j + 1
|
||||
|
|
|
|||
Loading…
Reference in a new issue