mirror of
https://github.com/certbot/certbot.git
synced 2026-08-02 19:42:02 +02:00
Merge pull request #6932 from adferrand/pylint-squash
Update Pylint to 1.9.4 (squashed PR)
This commit is contained in:
@@ -159,7 +159,7 @@ class _CloudflareClient(object):
|
||||
'you have supplied valid Cloudflare API credentials.{2}'
|
||||
.format(code, e, ' ({0})'.format(hint) if hint else ''))
|
||||
|
||||
if len(zones) > 0:
|
||||
if zones:
|
||||
zone_id = zones[0]['id']
|
||||
logger.debug('Found zone_id of %s for %s using name %s', zone_id, domain, zone_name)
|
||||
return zone_id
|
||||
@@ -191,9 +191,9 @@ class _CloudflareClient(object):
|
||||
logger.debug('Encountered CloudFlareAPIError getting TXT record_id: %s', e)
|
||||
records = []
|
||||
|
||||
if len(records) > 0:
|
||||
if records:
|
||||
# Cleanup is returning the system to the state we found it. If, for some reason,
|
||||
# there are multiple matching records, we only delete one because we only added one.
|
||||
return records[0]['id']
|
||||
else:
|
||||
logger.debug('Unable to find TXT record.')
|
||||
logger.debug('Unable to find TXT record.')
|
||||
return None
|
||||
|
||||
Reference in New Issue
Block a user