fix cleanup script too
This commit is contained in:
parent
8053908cff
commit
3311e2099a
@ -56,12 +56,14 @@ def main():
|
||||
else:
|
||||
client = xmlrpc.client.ServerProxy(uri = url, encoding='utf-8')
|
||||
|
||||
parts=[]
|
||||
while domain:
|
||||
res = client.getSubdomains(user, pwd, domain)
|
||||
if 'UNKNOWN_ERROR' not in res:
|
||||
break
|
||||
subdomain, domain = domain.split('.', maxsplit=1)
|
||||
subdomain = '_acme-challenge.{}'.format(subdomain)
|
||||
part, domain = domain.split('.', maxsplit=1)
|
||||
parts.append(part)
|
||||
subdomain = '_acme-challenge.{}'.format('.'.join(parts))
|
||||
|
||||
if 'UNKNOWN_ERROR' in res:
|
||||
print("Failed to find domain in loopiadns")
|
||||
|
Loading…
Reference in New Issue
Block a user