Fix managed zone lookup to ensure correct domain is selected where there are two domains with the same ending e.g. example.com and thisisanexample.com
This commit is contained in:
parent
9913d7a1a1
commit
4e1a3cc19e
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