mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-09-19 04:59:01 +00:00
names: Perform resolve diagnostics only if resolved is installed
Tests: - Ensure that systemd-resolved is not installed. Run diagnostics on names app. There should be no diagnostic related to resolving address for deb.debian.org. - Ensure that systemd-resolved is installed. Run diagnostics on names app. There should be diagnostic related to resolving address for deb.debian.org. Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org> Reviewed-by: Veiko Aasa <veiko17@disroot.org>
This commit is contained in:
parent
64e244e24a
commit
0a10ced950
@ -93,7 +93,9 @@ class NamesApp(app_module.App):
|
|||||||
def diagnose(self) -> list[DiagnosticCheck]:
|
def diagnose(self) -> list[DiagnosticCheck]:
|
||||||
"""Run diagnostics and return the results."""
|
"""Run diagnostics and return the results."""
|
||||||
results = super().diagnose()
|
results = super().diagnose()
|
||||||
results.append(diagnose_resolution('deb.debian.org'))
|
if is_resolved_installed():
|
||||||
|
results.append(diagnose_resolution('deb.debian.org'))
|
||||||
|
|
||||||
return results
|
return results
|
||||||
|
|
||||||
def setup(self, old_version):
|
def setup(self, old_version):
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user