mirror of
https://github.com/certbot/certbot.git
synced 2026-06-09 00:32:12 -04:00
fix cast formatting
This commit is contained in:
parent
5503d12395
commit
ef5f4cae04
5 changed files with 10 additions and 10 deletions
|
|
@ -63,8 +63,8 @@ class Authenticator(dns_common.DNSAuthenticator):
|
|||
def _get_dnsmadeeasy_client(self) -> "_DNSMadeEasyLexiconClient":
|
||||
if not self.credentials: # pragma: no cover
|
||||
raise errors.Error("Plugin has not been prepared.")
|
||||
return _DNSMadeEasyLexiconClient(cast(str,self.credentials.conf('api-key')),
|
||||
cast(str,self.credentials.conf('secret-key')),
|
||||
return _DNSMadeEasyLexiconClient(cast(str, self.credentials.conf('api-key')),
|
||||
cast(str, self.credentials.conf('secret-key')),
|
||||
self.ttl)
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -65,8 +65,8 @@ class Authenticator(dns_common.DNSAuthenticator):
|
|||
if not self.credentials: # pragma: no cover
|
||||
raise errors.Error("Plugin has not been prepared.")
|
||||
return _GehirnLexiconClient(
|
||||
cast(str,self.credentials.conf('api-token')),
|
||||
cast(str,self.credentials.conf('api-secret')),
|
||||
cast(str, self.credentials.conf('api-token')),
|
||||
cast(str, self.credentials.conf('api-secret')),
|
||||
self.ttl
|
||||
)
|
||||
|
||||
|
|
|
|||
|
|
@ -62,7 +62,7 @@ class Authenticator(dns_common.DNSAuthenticator):
|
|||
def _get_linode_client(self) -> '_LinodeLexiconClient':
|
||||
if not self.credentials: # pragma: no cover
|
||||
raise errors.Error("Plugin has not been prepared.")
|
||||
api_key = cast(str,self.credentials.conf('key'))
|
||||
api_key = cast(str, self.credentials.conf('key'))
|
||||
api_version: Optional[Union[str, int]] = self.credentials.conf('version')
|
||||
if api_version == '':
|
||||
api_version = None
|
||||
|
|
|
|||
|
|
@ -60,8 +60,8 @@ class Authenticator(dns_common.DNSAuthenticator):
|
|||
def _get_luadns_client(self) -> "_LuaDNSLexiconClient":
|
||||
if not self.credentials: # pragma: no cover
|
||||
raise errors.Error("Plugin has not been prepared.")
|
||||
return _LuaDNSLexiconClient(cast(str,self.credentials.conf('email')),
|
||||
cast(str,self.credentials.conf('token')),
|
||||
return _LuaDNSLexiconClient(cast(str, self.credentials.conf('email')),
|
||||
cast(str, self.credentials.conf('token')),
|
||||
self.ttl)
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -67,9 +67,9 @@ class Authenticator(dns_common.DNSAuthenticator):
|
|||
raise errors.Error("Plugin has not been prepared.")
|
||||
return _OVHLexiconClient(
|
||||
cast(str, self.credentials.conf('endpoint')),
|
||||
cast(str,self.credentials.conf('application-key')),
|
||||
cast(str,self.credentials.conf('application-secret')),
|
||||
cast(str,self.credentials.conf('consumer-key')),
|
||||
cast(str, self.credentials.conf('application-key')),
|
||||
cast(str, self.credentials.conf('application-secret')),
|
||||
cast(str, self.credentials.conf('consumer-key')),
|
||||
self.ttl
|
||||
)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue