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

fix

parent 1166978c
No related branches found
No related tags found
1 merge request!4L2SS-2098: Fix various issues happening during renewal
Pipeline #103907 passed with warnings
Pipeline: Cryptocoryne

#103908

    ...@@ -3,12 +3,15 @@ ...@@ -3,12 +3,15 @@
    """ Various clients """ """ Various clients """
    import socket
    from urllib.parse import urlparse from urllib.parse import urlparse
    import consul
    import josepy as jose
    import simple_acme_dns
    from acme import client as acme_client from acme import client as acme_client
    from acme import messages from acme import messages
    import simple_acme_dns
    import josepy as jose
    import consul
    import lofar_cryptocoryne.dns_client as desec import lofar_cryptocoryne.dns_client as desec
    ...@@ -27,7 +30,10 @@ def get_service_certificates() -> [(str, [str])]: ...@@ -27,7 +30,10 @@ def get_service_certificates() -> [(str, [str])]:
    class DnsClient: class DnsClient:
    """DNS client""" """DNS client"""
    DNS_SERVERS = ["ns1.desec.io", "ns2.desec.org"] DNS_SERVERS = [
    socket.gethostbyname("ns1.desec.io"),
    socket.gethostbyname("ns2.desec.org"),
    ]
    """ Client to access the dns providers API """ """ Client to access the dns providers API """
    def __init__(self, desec_client: desec.APIClient): def __init__(self, desec_client: desec.APIClient):
    ......
    0% Loading or .
    You are about to add 0 people to the discussion. Proceed with caution.
    Please register or to comment