"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "certbot-dns-dnsimple/certbot_dns_dnsimple/dns_dnsimple.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_dnsimple.py  (certbot-0.30.2):dns_dnsimple.py  (certbot-0.31.0)
skipping to change at line 66 skipping to change at line 66
return _DNSimpleLexiconClient(self.credentials.conf('token'), self.ttl) return _DNSimpleLexiconClient(self.credentials.conf('token'), self.ttl)
class _DNSimpleLexiconClient(dns_common_lexicon.LexiconClient): class _DNSimpleLexiconClient(dns_common_lexicon.LexiconClient):
""" """
Encapsulates all communication with the DNSimple via Lexicon. Encapsulates all communication with the DNSimple via Lexicon.
""" """
def __init__(self, token, ttl): def __init__(self, token, ttl):
super(_DNSimpleLexiconClient, self).__init__() super(_DNSimpleLexiconClient, self).__init__()
self.provider = dnsimple.Provider({ config = dns_common_lexicon.build_lexicon_config('dnssimple', {
'provider_name': 'dnssimple',
'auth_token': token,
'ttl': ttl, 'ttl': ttl,
}, {
'auth_token': token,
}) })
self.provider = dnsimple.Provider(config)
def _handle_http_error(self, e, domain_name): def _handle_http_error(self, e, domain_name):
hint = None hint = None
if str(e).startswith('401 Client Error: Unauthorized for url:'): if str(e).startswith('401 Client Error: Unauthorized for url:'):
hint = 'Is your API token value correct?' hint = 'Is your API token value correct?'
return errors.PluginError('Error determining zone identifier for {0}: {1 }.{2}' return errors.PluginError('Error determining zone identifier for {0}: {1 }.{2}'
.format(domain_name, e, ' ({0})'.format(hint) if hint else '')) .format(domain_name, e, ' ({0})'.format(hint) if hint else ''))
 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)