Browse Source

essentially ditch stacklevel/context for deprecation of config thigns (it's not useful)

pull/1107/head
Ross McFarland 2 years ago
parent
commit
f776fc6e65
No known key found for this signature in database GPG Key ID: 943B179E15D3B22A
5 changed files with 10 additions and 5 deletions
  1. +2
    -1
      octodns/processor/spf.py
  2. +2
    -1
      octodns/provider/yaml.py
  3. +2
    -1
      octodns/record/ds.py
  4. +2
    -1
      octodns/record/geo.py
  5. +2
    -1
      octodns/record/spf.py

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

@ -57,7 +57,8 @@ class SpfDnsLookupProcessor(BaseProcessor):
def __init__(self, name):
self.log.debug(f"SpfDnsLookupProcessor: {name}")
deprecated(
'SpfDnsLookupProcessor is DEPRECATED in favor of the version relocated into octodns-spf and will be removed in 2.0'
'SpfDnsLookupProcessor is DEPRECATED in favor of the version relocated into octodns-spf and will be removed in 2.0',
stacklevel=99,
)
super().__init__(name)


+ 2
- 1
octodns/provider/yaml.py View File

@ -468,5 +468,6 @@ class SplitYamlProvider(YamlProvider):
)
super().__init__(id, directory, *args, **kwargs)
deprecated(
'SplitYamlProvider is DEPRECATED, use YamlProvider with split_extension, split_catchall, and disable_zonefile instead, will go away in v2.0'
'SplitYamlProvider is DEPRECATED, use YamlProvider with split_extension, split_catchall, and disable_zonefile instead, will go away in v2.0',
stacklevel=99,
)

+ 2
- 1
octodns/record/ds.py View File

@ -50,7 +50,8 @@ class DsValue(EqualityTupleMixin, dict):
# A DS record without public_key doesn't make any sense and shouldn't have validated previously
if "public_key" in value or "flags" in value:
deprecated(
'DS properties "algorithm", "flags", "public_key", and "protocol" support is DEPRECATED and will be removed in 2.0'
'DS properties "algorithm", "flags", "public_key", and "protocol" support is DEPRECATED and will be removed in 2.0',
stacklevel=99,
)
try:
int(value['flags'])


+ 2
- 1
octodns/record/geo.py View File

@ -143,7 +143,8 @@ class _GeoMixin(ValuesMixin):
try:
geo = dict(data['geo'])
deprecated(
'`geo` records are DEPRECATED. `dynamic` records should be used instead. Will be removed in 2.0'
'`geo` records are DEPRECATED. `dynamic` records should be used instead. Will be removed in 2.0',
stacklevel=99,
)
for code, values in geo.items():
reasons.extend(GeoValue._validate_geo(code))


+ 2
- 1
octodns/record/spf.py View File

@ -14,7 +14,8 @@ class SpfRecord(_ChunkedValuesMixin, Record):
def __init__(self, *args, **kwargs):
super().__init__(*args, **kwargs)
deprecated(
'The SPF record type is DEPRECATED in favor of TXT values and will become an ValidationError in 2.0'
'The SPF record type is DEPRECATED in favor of TXT values and will become an ValidationError in 2.0',
stacklevel=99,
)


Loading…
Cancel
Save