Skip to content

Commit

Permalink
Merge pull request #22 from LondonPaul/subdomain_fix
Browse files Browse the repository at this point in the history
Fix managed zone lookup to ensure correct domain is selected where th…
  • Loading branch information
helgeerbe authored Nov 13, 2023
2 parents 9913d7a + 4e1a3cc commit 8c19dea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion certbot_dns_ionos/dns_ionos.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ def _find_managed_zone_id(self, domain):
# is a subdomain
for zone in zones:
# get the zone id
if domain.endswith(zone['name']):
if domain.endswith(f".{zone['name']}"):
return zone['id'], zone['name']
return None, None

Expand Down

0 comments on commit 8c19dea

Please sign in to comment.