Browse Source

Record.lenient property added similar to other common/standard _octodns data

pull/1105/head
Ross McFarland 2 years ago
parent
commit
7be540b86c
No known key found for this signature in database GPG Key ID: 943B179E15D3B22A
4 changed files with 10 additions and 2 deletions
  1. +4
    -0
      CHANGELOG.md
  2. +1
    -1
      octodns/processor/restrict.py
  3. +1
    -1
      octodns/processor/spf.py
  4. +4
    -0
      octodns/record/base.py

+ 4
- 0
CHANGELOG.md View File

@ -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


+ 1
- 1
octodns/processor/restrict.py View File

@ -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(


+ 1
- 1
octodns/processor/spf.py View File

@ -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)


+ 4
- 0
octodns/record/base.py View File

@ -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:


Loading…
Cancel
Save