diff --git a/CHANGELOG.md b/CHANGELOG.md index c5c1d58..830c7f1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,7 @@ +## v1.?.0 - 2023-??-?? - + +* Record.lenient property added similar to other common/standard _octodns data + ## v1.3.0 - 2023-11-14 - New and improved processors #### Noteworthy changes diff --git a/octodns/processor/restrict.py b/octodns/processor/restrict.py index e585eeb..c11a21b 100644 --- a/octodns/processor/restrict.py +++ b/octodns/processor/restrict.py @@ -59,7 +59,7 @@ class TtlRestrictionFilter(BaseProcessor): def process_source_zone(self, zone, *args, **kwargs): for record in zone.records: - if record._octodns.get('lenient'): + if record.lenient: continue if self.allowed_ttls and record.ttl not in self.allowed_ttls: raise RestrictionException( diff --git a/octodns/processor/spf.py b/octodns/processor/spf.py index dee82ed..0d86d5e 100644 --- a/octodns/processor/spf.py +++ b/octodns/processor/spf.py @@ -137,7 +137,7 @@ class SpfDnsLookupProcessor(BaseProcessor): if record._type != 'TXT': continue - if record._octodns.get('lenient'): + if record.lenient: continue self._check_dns_lookups(record, record.values, 0) diff --git a/octodns/record/base.py b/octodns/record/base.py index 3b9b36e..700b65d 100644 --- a/octodns/record/base.py +++ b/octodns/record/base.py @@ -231,6 +231,10 @@ class Record(EqualityTupleMixin): except KeyError: return 443 + @property + def lenient(self): + return self._octodns.get('lenient', False) + def changes(self, other, target): # We're assuming we have the same name and type if we're being compared if self.ttl != other.ttl: