From f1b7839915f82307d529cf6128f7bbd0fc226f05 Mon Sep 17 00:00:00 2001 From: Olivier Le Thanh Duong Date: Tue, 7 Nov 2023 09:26:15 +0100 Subject: [PATCH] black --- src/aleph/vm/conf.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/aleph/vm/conf.py b/src/aleph/vm/conf.py index f9b66486..87c23248 100644 --- a/src/aleph/vm/conf.py +++ b/src/aleph/vm/conf.py @@ -74,8 +74,6 @@ def resolvectl_dns_servers(interface: str) -> Iterable[str]: yield server.strip() - - def get_default_interface() -> str | None: """Returns the default network interface""" with open("/proc/net/route") as f: @@ -171,8 +169,10 @@ class Settings(BaseSettings): description="Use the Neighbor Discovery Protocol Proxy to respond to Router Solicitation for instances on IPv6", ) - DNS_RESOLUTION: DnsResolver | None = Field(default=DnsResolver.detect, - description="Method used to resolve the dns server if DNS_NAMESERVERS is not present.") + DNS_RESOLUTION: DnsResolver | None = Field( + default=DnsResolver.detect, + description="Method used to resolve the dns server if DNS_NAMESERVERS is not present.", + ) DNS_NAMESERVERS: list[str] | None = None DNS_NAMESERVERS_IPV4: list[str] DNS_NAMESERVERS_IPV6: list[str]