fix return values for unknown domain

This commit is contained in:
Helge 2020-12-23 14:39:22 +01:00
parent b2c2b29b52
commit 11afb0392d
2 changed files with 2 additions and 2 deletions

2
.vscode/launch.json vendored
View file

@ -10,7 +10,7 @@
"request": "launch", "request": "launch",
"program": "/home/pi/dev/certbot/venv3/bin/certbot", "program": "/home/pi/dev/certbot/venv3/bin/certbot",
"console": "integratedTerminal", "console": "integratedTerminal",
"args": ["certonly", "-a", "dns-ionos", "-d", "*.erbehome.de", "--dns-ionos-credentials", "/home/pi/dev/certbot-dns-ionos/my_debug/secrets/credentials.ini", "--config-dir", "my_debug/config", "--work-dir", "my_debug/work", "--logs-dir", "my_debug/logs"] "args": ["certonly", "-a", "dns-ionos", "-d", "*.examaple.de", "--dns-ionos-credentials", "/home/pi/dev/certbot-dns-ionos/my_debug/secrets/credentials.ini", "--config-dir", "my_debug/config", "--work-dir", "my_debug/work", "--logs-dir", "my_debug/logs"]
} }
] ]
} }

View file

@ -97,7 +97,7 @@ 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']
return None return None, None
def _api_request(self, type, action, data = None): def _api_request(self, type, action, data = None):
url = self._get_url(action) url = self._get_url(action)