Fixed osTicket post color for failed diags

This commit is contained in:
2Shirt 2019-08-03 18:39:56 -06:00
parent 60dcc15536
commit 578818271f
Signed by: 2Shirt
GPG key ID: 152FAC923B0E132C

View file

@ -1272,6 +1272,8 @@ def run_hw_tests(state):
color_code = 'Diags'
for test in disk.tests.values():
if test.disabled:
if test.failed:
color_code = 'Diags FAIL'
continue
if test.failed or not (test.passed or 'N/A' in test.status):
color_code = 'Diags FAIL'