mirror of
https://github.com/certbot/certbot.git
synced 2026-06-05 06:42:10 -04:00
Without this change, the Route53 plugin is listed twice when running Certbot interactively (once under the old name, once under the new name). This change ensures only the new name is shown, while maintaining hidden backwards compatibility with the old name.
20 lines
696 B
Python
20 lines
696 B
Python
"""Shim around `~certbot_dns_route53.dns_route53` for backwards compatibility."""
|
|
import warnings
|
|
|
|
import zope.interface
|
|
|
|
from certbot import interfaces
|
|
from certbot_dns_route53 import dns_route53
|
|
|
|
|
|
@zope.interface.implementer(interfaces.IAuthenticator)
|
|
@zope.interface.provider(interfaces.IPluginFactory)
|
|
class Authenticator(dns_route53.Authenticator):
|
|
"""Shim around `~certbot_dns_route53.dns_route53.Authenticator` for backwards compatibility."""
|
|
|
|
hidden = True
|
|
|
|
def __init__(self, *args, **kwargs):
|
|
warnings.warn("The 'authenticator' module was renamed 'dns_route53'",
|
|
DeprecationWarning)
|
|
super(Authenticator, self).__init__(*args, **kwargs)
|