From: Remi Gacogne Date: Tue, 8 Jan 2019 16:00:17 +0000 (+0100) Subject: rec: Fix an invalid use if cls._PREFIX in the ECS regression tests X-Git-Tag: rec-4.2.0-alpha1~43^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=efd26793a03f535b0f8907196ab32b1a081fc113;p=pdns rec: Fix an invalid use if cls._PREFIX in the ECS regression tests --- diff --git a/regression-tests.recursor-dnssec/test_ECS.py b/regression-tests.recursor-dnssec/test_ECS.py index 67ac34d9d..7da9f0504 100644 --- a/regression-tests.recursor-dnssec/test_ECS.py +++ b/regression-tests.recursor-dnssec/test_ECS.py @@ -518,7 +518,7 @@ class UDPECSResponder(DatagramProtocol): elif request.question[0].name == dns.name.from_text(nameECS) and request.question[0].rdtype == dns.rdatatype.NS: answer = dns.rrset.from_text(nameECS, ttlECS, dns.rdataclass.IN, 'NS', 'ns1.ecs-echo.example.') response.answer.append(answer) - additional = dns.rrset.from_text('ns1.ecs-echo.example.', 15, dns.rdataclass.IN, 'A', cls._PREFIX + '.21') + additional = dns.rrset.from_text('ns1.ecs-echo.example.', 15, dns.rdataclass.IN, 'A', os.environ['PREFIX'] + '.21') response.additional.append(additional) if ecso: