"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "certbot-dns-gehirn/certbot_dns_gehirn/dns_gehirn.py" between
certbot-0.30.2.tar.gz and certbot-0.31.0.tar.gz

About: Certbot is EFF’s tool to obtain certs from Let’s Encrypt, and optionally auto-enable HTTPS on your server. It can also act as a client for any other CA that uses the ACME protocol.

dns_gehirn.py  (certbot-0.30.2):dns_gehirn.py  (certbot-0.31.0)
skipping to change at line 74 skipping to change at line 74
) )
class _GehirnLexiconClient(dns_common_lexicon.LexiconClient): class _GehirnLexiconClient(dns_common_lexicon.LexiconClient):
""" """
Encapsulates all communication with the Gehirn Infrastracture Service via Le xicon. Encapsulates all communication with the Gehirn Infrastracture Service via Le xicon.
""" """
def __init__(self, api_token, api_secret, ttl): def __init__(self, api_token, api_secret, ttl):
super(_GehirnLexiconClient, self).__init__() super(_GehirnLexiconClient, self).__init__()
self.provider = gehirn.Provider({ config = dns_common_lexicon.build_lexicon_config('gehirn', {
'provider_name': 'gehirn', 'ttl': ttl,
}, {
'auth_token': api_token, 'auth_token': api_token,
'auth_secret': api_secret, 'auth_secret': api_secret,
'ttl': ttl,
}) })
self.provider = gehirn.Provider(config)
def _handle_http_error(self, e, domain_name): def _handle_http_error(self, e, domain_name):
if domain_name in str(e) and (str(e).startswith('404 Client Error: Not F ound for url:')): if domain_name in str(e) and (str(e).startswith('404 Client Error: Not F ound for url:')):
return # Expected errors when zone name guess is wrong return # Expected errors when zone name guess is wrong
return super(_GehirnLexiconClient, self)._handle_http_error(e, domain_na me) return super(_GehirnLexiconClient, self)._handle_http_error(e, domain_na me)
 End of changes. 3 change blocks. 
3 lines changed or deleted 5 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)