From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Fri, 7 Nov 2025 14:02:54 +0000 (-0500) Subject: chore: Unshadow domain and store domainObject X-Git-Tag: rec-5.4.0-alpha1~115^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=72ea105e9407d6ba80a3d3ca7dea80b56b4a0299;p=thirdparty%2Fpdns.git chore: Unshadow domain and store domainObject Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- diff --git a/modules/remotebackend/pdns_unittest.py b/modules/remotebackend/pdns_unittest.py index 06cbd0011d..469c545a48 100644 --- a/modules/remotebackend/pdns_unittest.py +++ b/modules/remotebackend/pdns_unittest.py @@ -211,7 +211,7 @@ class Handler(pdns.remotebackend.Handler): def do_supermasterbackend(self, domain='', nsset=[], **kwargs): d_id = len(DOMAINS) + 1 dom = domain.lower() - domain = { + domainObject = { 'id': d_id, 'name': dom, 'kind': 'slave', @@ -230,8 +230,8 @@ class Handler(pdns.remotebackend.Handler): for rr in nsset: nsset.append(self.record(qname=rr['qname'], qtype=rr['qtype'], content=rr['content'], ttl=rr['ttl'])) - domain['rr'][dom]['NS'] = nsset - DOMAINS[dom] = domain + domainObject['rr'][dom]['NS'] = nsset + DOMAINS[dom] = domainObject self.result = [{ 'nameserver': 'ns.%s' % dom, @@ -242,7 +242,7 @@ class Handler(pdns.remotebackend.Handler): def do_createslavedomain(self, domain='', **kwargs): d_id = len(DOMAINS) + 1 dom = domain.lower() - domain = { + domainObject = { 'id': d_id, 'name': dom, 'kind': 'slave', @@ -253,6 +253,8 @@ class Handler(pdns.remotebackend.Handler): 'rr': { } } + DOMAINS[dom] = domainObject + self.result = True def do_feedrecord(self, rr={}, **kwargs):