Skip to content
Snippets Groups Projects
Commit a4d02952 authored by Hannes Feldt's avatar Hannes Feldt
Browse files

Fix DNS record creation during renewal

parent fef103f9
Branches
No related tags found
1 merge request!4L2SS-2098: Fix various issues happening during renewal
Pipeline #103856 failed
Pipeline: Cryptocoryne

#103857

    ......@@ -38,9 +38,7 @@ class DnsClient:
    """Setup DNS TXT records to verify given domain with given tokens"""
    zone = self.desec_client.get_authoritative_domain(verify_domain)
    subname = verify_domain.rsplit(zone["name"], 1)[0].rstrip(".")
    self.desec_client.change_record(
    zone["name"], "TXT", subname, [f'"{tokens[0]}"']
    )
    self.desec_client.add_record(zone["name"], "TXT", subname, [f'"{tokens[0]}"'])
    self.cleanups.append(
    lambda d=zone["name"], sn=subname: self.desec_client.delete_record(
    d, "TXT", sn
    ......
    0% Loading or .
    You are about to add 0 people to the discussion. Proceed with caution.
    Please register or to comment