"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "certbot-dns-sakuracloud/certbot_dns_sakuracloud/dns_sakuracloud.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_sakuracloud.py  (certbot-0.30.2):dns_sakuracloud.py  (certbot-0.31.0)
skipping to change at line 76 skipping to change at line 76
) )
class _SakuraCloudLexiconClient(dns_common_lexicon.LexiconClient): class _SakuraCloudLexiconClient(dns_common_lexicon.LexiconClient):
""" """
Encapsulates all communication with the Sakura Cloud via Lexicon. Encapsulates all communication with the Sakura Cloud via Lexicon.
""" """
def __init__(self, api_token, api_secret, ttl): def __init__(self, api_token, api_secret, ttl):
super(_SakuraCloudLexiconClient, self).__init__() super(_SakuraCloudLexiconClient, self).__init__()
self.provider = sakuracloud.Provider({ config = dns_common_lexicon.build_lexicon_config('sakuracloud', {
'provider_name': 'sakuracloud', 'ttl': ttl,
}, {
'auth_token': api_token, 'auth_token': api_token,
'auth_secret': api_secret, 'auth_secret': api_secret,
'ttl': ttl,
}) })
self.provider = sakuracloud.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(_SakuraCloudLexiconClient, self)._handle_http_error(e, doma in_name) return super(_SakuraCloudLexiconClient, self)._handle_http_error(e, doma in_name)
 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)