Skip to content

Commit

Permalink
Workaround for the missing zope interface
Browse files Browse the repository at this point in the history
  • Loading branch information
obynio committed Dec 8, 2022
1 parent 29371ff commit bfa77f2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 8 deletions.
11 changes: 4 additions & 7 deletions certbot_plugin_gandi/main.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import zope.interface
import logging
import uuid

Expand All @@ -7,19 +6,17 @@

from . import gandi_api


logger = logging.getLogger(__name__)


def register_authenticator(cls):
try:
interfaces.Authenticator.register(cls)
except AttributeError:
pass
zope.interface.implementer(interfaces.IAuthenticator)(cls)
zope.interface.provider(interfaces.IPluginFactory)(cls)
import zope.interface
zope.interface.implementer(interfaces.IAuthenticator)(cls)
zope.interface.provider(interfaces.IPluginFactory)(cls)
return cls

@register_authenticator
class Authenticator(dns_common.DNSAuthenticator):
"""DNS Authenticator for Gandi (using LiveDNS)."""
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

setup(
name='certbot-plugin-gandi',
version='1.4.2',
version='1.4.3',
author="Yohann Leon",
author_email="yohann@leon.re",
description="Certbot plugin for authentication using Gandi LiveDNS",
Expand Down

0 comments on commit bfa77f2

Please sign in to comment.