mirror of
https://github.com/github/octodns.git
synced 2024-05-11 05:55:00 +00:00
Record.lenient property added similar to other common/standard _octodns data
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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(
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user