mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-05-20 10:34:30 +00:00
datetime: Fix diagnostic test to not ignore first two servers
Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
This commit is contained in:
parent
47366770c8
commit
3173c70743
@ -82,7 +82,7 @@ def _diagnose_chrony_server_count():
|
|||||||
result = 'failed'
|
result = 'failed'
|
||||||
try:
|
try:
|
||||||
output = subprocess.check_output(['chronyc', '-c', 'sources'])
|
output = subprocess.check_output(['chronyc', '-c', 'sources'])
|
||||||
if len(output.decode().splitlines()[2:]):
|
if output.decode():
|
||||||
result = 'passed'
|
result = 'passed'
|
||||||
except subprocess.CalledProcessError:
|
except subprocess.CalledProcessError:
|
||||||
pass
|
pass
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user