mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-03-11 09:04:54 +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]:
|
||||
"""Run diagnostics and return the results."""
|
||||
results = super().diagnose()
|
||||
results.append(diagnose_resolution('deb.debian.org'))
|
||||
if is_resolved_installed():
|
||||
results.append(diagnose_resolution('deb.debian.org'))
|
||||
|
||||
return results
|
||||
|
||||
def setup(self, old_version):
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user