Merge pull request #22 from LondonPaul/subdomain_fix

Fix managed zone lookup to ensure correct domain is selected where th…
This commit is contained in:
helgeerbe 2023-11-13 12:54:37 +01:00 committed by GitHub
commit 8c19deacf7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -97,7 +97,7 @@ class _ionosClient(object):
# is a subdomain # is a subdomain
for zone in zones: for zone in zones:
# get the zone id # get the zone id
if domain.endswith(zone['name']): if domain.endswith(f".{zone['name']}"):
return zone['id'], zone['name'] return zone['id'], zone['name']
return None, None return None, None