play coverage games

This commit is contained in:
Brad Warren 2018-01-16 20:50:55 -08:00
parent abc0287cde
commit 0aa6898218

View file

@ -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