mirror of
https://github.com/certbot/certbot.git
synced 2026-06-09 00:32:12 -04:00
Detect private DNS zones in Google and skip them until we get to a public zone
This commit is contained in:
parent
333ea90d1b
commit
463d089407
1 changed files with 5 additions and 4 deletions
|
|
@ -274,10 +274,11 @@ class _GoogleClient(object):
|
|||
raise errors.PluginError('Encountered error finding managed zone: {0}'
|
||||
.format(e))
|
||||
|
||||
if zones:
|
||||
zone_id = zones[0]['id']
|
||||
logger.debug('Found id of %s for %s using name %s', zone_id, domain, zone_name)
|
||||
return zone_id
|
||||
for zone in zones:
|
||||
zone_id = zone['id']
|
||||
if 'privateVisibilityConfig' not in zone:
|
||||
logger.debug('Found id of %s for %s using name %s', zone_id, domain, zone_name)
|
||||
return zone_id
|
||||
|
||||
raise errors.PluginError('Unable to determine managed zone for {0} using zone names: {1}.'
|
||||
.format(domain, zone_dns_name_guesses))
|
||||
|
|
|
|||
Loading…
Reference in a new issue