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:
commit
8c19deacf7
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue