From ac06b0d7591d10ecdcb18ad714329a8a1f8907e9 Mon Sep 17 00:00:00 2001 From: Brad Warren Date: Tue, 16 Jan 2018 21:11:17 -0800 Subject: [PATCH] fix test-same-vhost --- certbot-apache/certbot_apache/tests/http_01_test.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/certbot-apache/certbot_apache/tests/http_01_test.py b/certbot-apache/certbot_apache/tests/http_01_test.py index aea98ee3e..a02578273 100644 --- a/certbot-apache/certbot_apache/tests/http_01_test.py +++ b/certbot-apache/certbot_apache/tests/http_01_test.py @@ -114,7 +114,7 @@ class ApacheHttp01Test(util.ApacheTest): return other_calls def test_same_vhost(self): - vhost = self.config.vhosts[3] + vhost = next(v for v in self.config.vhosts if v.name == "certbot.demo") achalls = [ achallenges.KeyAuthorizationAnnotatedChallenge( challb=acme_util.chall_to_challb(