datetime: Fix diagnostic test to not ignore first two servers

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
This commit is contained in:
Sunil Mohan Adapa 2019-02-05 15:39:22 -08:00
parent 47366770c8
commit 3173c70743
No known key found for this signature in database
GPG Key ID: 43EA1CFF0AA7C5F2

View File

@ -82,7 +82,7 @@ def _diagnose_chrony_server_count():
result = 'failed'
try:
output = subprocess.check_output(['chronyc', '-c', 'sources'])
if len(output.decode().splitlines()[2:]):
if output.decode():
result = 'passed'
except subprocess.CalledProcessError:
pass