Allow requesting certificates for subdomains.
This commit is contained in:
parent
1087e6fbf0
commit
ca79408f1e
1 changed files with 6 additions and 0 deletions
|
@ -97,6 +97,12 @@ class _ionosClient(object):
|
||||||
# get the zone id
|
# get the zone id
|
||||||
if zone['name'] == domain:
|
if zone['name'] == domain:
|
||||||
return zone['id'], zone['name']
|
return zone['id'], zone['name']
|
||||||
|
# if the domain does not exactly match one of the zones, check if it
|
||||||
|
# is a subdomain
|
||||||
|
for zone in zones:
|
||||||
|
# get the zone id
|
||||||
|
if domain.endswith(zone['name']):
|
||||||
|
return zone['id'], zone['name']
|
||||||
return None, None
|
return None, None
|
||||||
|
|
||||||
def _api_request(self, type, action, data = None):
|
def _api_request(self, type, action, data = None):
|
||||||
|
|
Loading…
Reference in a new issue