mirror of
https://github.com/github/octodns.git
synced 2024-05-11 05:55:00 +00:00
essentially ditch stacklevel/context for deprecation of config thigns (it's not useful)
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
@@ -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,
|
||||
)
|
||||
|
||||
@@ -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'])
|
||||
|
||||
@@ -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))
|
||||
|
||||
@@ -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,
|
||||
)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user