From 2a99bd922fa71162ccf83f8222c22beb130e0726 Mon Sep 17 00:00:00 2001 From: Ross McFarland Date: Tue, 20 Jun 2023 07:41:38 -0700 Subject: [PATCH] Always add ownership flatting records with lenient=True This is intened to address cases where NS delegation ownership records are added to the parent zone when they technically should live in the delegated child. They're only used as ~metadata so this is fine, so long as the provider supports it. --- octodns/processor/ownership.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/octodns/processor/ownership.py b/octodns/processor/ownership.py index 3323019..ed8f34a 100644 --- a/octodns/processor/ownership.py +++ b/octodns/processor/ownership.py @@ -32,7 +32,9 @@ class OwnershipProcessor(BaseProcessor): name, {'type': 'TXT', 'ttl': 60, 'value': self.txt_value}, ) - desired.add_record(txt) + # add these w/lenient to cover the case when the ownership record + # for a NS delegation record should technically live in the subzone + desired.add_record(txt, lenient=True) return desired