diff options
author | Zach Shepherd <zjs@users.noreply.github.com> | 2017-06-08 01:16:52 +0300 |
---|---|---|
committer | Brad Warren <bmw@users.noreply.github.com> | 2017-06-08 01:16:52 +0300 |
commit | a06dec366023d14277fa4309d0e75c51c36f49ce (patch) | |
tree | 7f034c11ffc94b480560336862c4c346aca25248 | |
parent | 239184882e1694bee62b12e43e3d4e0a1f08b9da (diff) |
route53: avoid listing the plugin twice in the UI (#4794)
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.
-rw-r--r-- | certbot-dns-route53/certbot_dns_route53/authenticator.py | 8 | ||||
-rw-r--r-- | certbot-dns-route53/setup.py | 2 |
2 files changed, 9 insertions, 1 deletions
diff --git a/certbot-dns-route53/certbot_dns_route53/authenticator.py b/certbot-dns-route53/certbot_dns_route53/authenticator.py index 0c612e57c..53215ea1d 100644 --- a/certbot-dns-route53/certbot_dns_route53/authenticator.py +++ b/certbot-dns-route53/certbot_dns_route53/authenticator.py @@ -1,11 +1,19 @@ """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) diff --git a/certbot-dns-route53/setup.py b/certbot-dns-route53/setup.py index 8d2632697..a138cdea5 100644 --- a/certbot-dns-route53/setup.py +++ b/certbot-dns-route53/setup.py @@ -53,7 +53,7 @@ setup( entry_points={ 'certbot.plugins': [ 'dns-route53 = certbot_dns_route53.dns_route53:Authenticator', - 'certbot-route53:auth = certbot_dns_route53.dns_route53:Authenticator' + 'certbot-route53:auth = certbot_dns_route53.authenticator:Authenticator' ], }, test_suite='certbot_dns_route53', |