mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
Remove stale code
This commit is contained in:
parent
9cf0e6ed6c
commit
76de0bb2e9
1 changed files with 1 additions and 9 deletions
|
@ -3,11 +3,9 @@
|
||||||
import os
|
import os
|
||||||
import re
|
import re
|
||||||
|
|
||||||
from subprocess import CalledProcessError
|
|
||||||
from datetime import datetime, timedelta
|
from datetime import datetime, timedelta
|
||||||
from publicsuffix import PublicSuffixList
|
from publicsuffix import PublicSuffixList
|
||||||
|
|
||||||
from moulinette.utils.filesystem import read_file
|
|
||||||
from moulinette.utils.process import check_output
|
from moulinette.utils.process import check_output
|
||||||
|
|
||||||
from yunohost.utils.network import dig
|
from yunohost.utils.network import dig
|
||||||
|
@ -27,12 +25,6 @@ class DNSRecordsDiagnoser(Diagnoser):
|
||||||
|
|
||||||
def run(self):
|
def run(self):
|
||||||
|
|
||||||
resolvers = read_file("/etc/resolv.dnsmasq.conf").split("\n")
|
|
||||||
ipv4_resolvers = [r.split(" ")[1] for r in resolvers if r.startswith("nameserver") and ":" not in r]
|
|
||||||
# FIXME some day ... handle ipv4-only and ipv6-only servers. For now we assume we have at least ipv4
|
|
||||||
assert ipv4_resolvers != [], "Uhoh, need at least one IPv4 DNS resolver ..."
|
|
||||||
|
|
||||||
self.resolver = ipv4_resolvers[0]
|
|
||||||
main_domain = _get_maindomain()
|
main_domain = _get_maindomain()
|
||||||
|
|
||||||
all_domains = domain_list()["domains"]
|
all_domains = domain_list()["domains"]
|
||||||
|
|
Loading…
Add table
Reference in a new issue