datetime: Don't expect synced time in diagnostics inside VMs

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
This commit is contained in:
Sunil Mohan Adapa authored and James Valleroy committed 2020-05-04 18:46:29 -04:00
1 parent 57daf338c8
commit ce23f07e92
1 file changed
+3 -1
+3 -1
View File
@@ -82,7 +82,9 @@ class DateTimeApp(app_module.App):
def diagnose(self):
"""Run diagnostics and return the results."""
results = super().diagnose()
results.append(_diagnose_time_synchronized())
if self._is_time_managed():
results.append(_diagnose_time_synchronized())
return results