Merge pull request #10 from anhi/master

Allow requesting certificates for subdomains.
This commit is contained in:
helgeerbe 2021-09-20 16:09:41 +02:00 committed by GitHub
commit ce2aac20e2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -97,6 +97,12 @@ class _ionosClient(object):
# get the zone id
if zone['name'] == domain:
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
def _api_request(self, type, action, data = None):