1
0
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:
Ross McFarland
2023-11-14 14:19:14 -08:00
parent 85a5bfe698
commit 7be540b86c
4 changed files with 10 additions and 2 deletions

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

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(

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)

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: