mirror of
https://github.com/github/octodns.git
synced 2024-05-11 05:55:00 +00:00
1.0 RC: Remove deprecated provider, source, and processor shims
This commit is contained in:
@@ -1,20 +0,0 @@
|
||||
#
|
||||
#
|
||||
#
|
||||
|
||||
from logging import getLogger
|
||||
|
||||
logger = getLogger('AXFR')
|
||||
try:
|
||||
logger.warning(
|
||||
'octodns_bind shimmed. Update your provider class to octodns_bind.AxfrSource or octodns_bind.ZoneFileSource. Shim will be removed in 1.0'
|
||||
)
|
||||
from octodns_bind import AxfrSource, ZoneFileSource
|
||||
|
||||
AxfrSource # pragma: no cover
|
||||
ZoneFileSource # pragma: no cover
|
||||
except ModuleNotFoundError:
|
||||
logger.exception(
|
||||
'AXFR/Zone file support has been moved into a separate module, octodns_bind is now required. Provider classes should be updated to octodns_bind.AxfrSource or octodns_bind.ZoneFileSource. See https://github.com/octodns/octodns#updating-to-use-extracted-providers for more information.'
|
||||
)
|
||||
raise
|
Reference in New Issue
Block a user