Skip to content

Commit

Permalink
Fix format
Browse files Browse the repository at this point in the history
  • Loading branch information
alehaa committed Jan 10, 2025
1 parent 59033e3 commit d3b1d8f
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions octodns_cloudflare/processor/ttl.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,14 +36,12 @@ def __init__(self, name, ttl=0):
def process_source_zone(self, zone, *args, **kwargs):
for record in zone.records:
if record.ttl == self.ttl:
attr = {
'auto-ttl': True,
}
attr = {'auto-ttl': True}
if record._type in _PROXIABLE_RECORD_TYPES:
attr["proxied"] = True
attr['proxied'] = True

record = record.copy()
record._octodns["cloudflare"] = attr
record._octodns['cloudflare'] = attr
record.ttl = 1
# Ensure we set to valid TTL.
zone.add_record(record, replace=True, lenient=True)
Expand Down

0 comments on commit d3b1d8f

Please sign in to comment.