Browse Source

Merge pull request #1060 from octodns/spf-deprecations

Spf deprecations
processor-id
Ross McFarland 2 years ago
committed by GitHub
parent
commit
ccb4f97a2f
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 13 additions and 0 deletions
  1. +4
    -0
      CHANGELOG.md
  2. +3
    -0
      octodns/processor/spf.py
  3. +6
    -0
      octodns/record/spf.py

+ 4
- 0
CHANGELOG.md View File

@ -19,6 +19,10 @@
snippets of config to be reused across many records, e.g. common dynamic rules
across a set of services with service-specific pool values or a unified SFP
value included in TXT records at the root of all zones.
* SpfRecord is formally deprecated with an warning and will become a
ValidationError in 2.x
* SpfDnsLookupProcessor is formally deprcated in favor of the version relocated
into https://github.com/octodns/octodns-spf and will be removed in 2.x
#### Stuff


+ 3
- 0
octodns/processor/spf.py View File

@ -55,6 +55,9 @@ class SpfDnsLookupProcessor(BaseProcessor):
def __init__(self, name):
self.log.debug(f"SpfDnsLookupProcessor: {name}")
self.log.warning(
'SpfDnsLookupProcessor is DEPRECATED in favor of the version relocated into octodns-spf and will be removed in 2.0'
)
super().__init__(name)
def _get_spf_from_txt_values(


+ 6
- 0
octodns/record/spf.py View File

@ -10,5 +10,11 @@ class SpfRecord(_ChunkedValuesMixin, Record):
_type = 'SPF'
_value_type = _ChunkedValue
def __init__(self, *args, **kwargs):
super().__init__(*args, **kwargs)
self.log.warning(
'The SPF record type is DEPRECATED in favor of TXT values and will become an ValidationError in 2.0'
)
Record.register_type(SpfRecord)

Loading…
Cancel
Save