"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "certbot-dns-cloudxns/certbot_dns_cloudxns/dns_cloudxns.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_cloudxns.py  (certbot-0.30.2):dns_cloudxns.py  (certbot-0.31.0)
skipping to change at line 70 skipping to change at line 70
self.ttl) self.ttl)
class _CloudXNSLexiconClient(dns_common_lexicon.LexiconClient): class _CloudXNSLexiconClient(dns_common_lexicon.LexiconClient):
""" """
Encapsulates all communication with the CloudXNS via Lexicon. Encapsulates all communication with the CloudXNS via Lexicon.
""" """
def __init__(self, api_key, secret_key, ttl): def __init__(self, api_key, secret_key, ttl):
super(_CloudXNSLexiconClient, self).__init__() super(_CloudXNSLexiconClient, self).__init__()
self.provider = cloudxns.Provider({ config = dns_common_lexicon.build_lexicon_config('cloudxns', {
'provider_name': 'cloudxns', 'ttl': ttl,
}, {
'auth_username': api_key, 'auth_username': api_key,
'auth_token': secret_key, 'auth_token': secret_key,
'ttl': ttl,
}) })
self.provider = cloudxns.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('400 Client Error:'): if str(e).startswith('400 Client Error:'):
hint = 'Are your API key and Secret key values correct?' hint = 'Are your API key and Secret key values 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)